I have used SUSBST command to create mapped drive to a certain folder. In a console application I can access the directory, while I cant access the same directory in a windows service application. In other words the following line returns false
Directory.Exists(@"x:\directory")
where x: is defined using SUBST as follow:
SUBST x: c:\xdrive
How can I access the subst-mapped directories in a windows service application?