Link to home
Start Free TrialLog in
Avatar of SpotIT
SpotITFlag for United States of America

asked on

Visual Studio 2010 - DirectoryExists returning false positive


Curious if anyone else has seen, heard, or knows the solution to the issue I am experiencing in Visual Studio 2010. I am running a Directory Exists test on a remote system and receiving false positives. For example I am running the following on a Windows 7 system:

If ("\\MachineName\C$\Documents and Setting\UserID\Desktop")) Then

'Do what i want

End if

Although the system is Windows 7 and does not contain the directory "Documents and Settings" Visual Studio is returning a value of true indicating the Directory Exists.

Any ideas?
Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SpotIT


OMG! Why would Microsoft Toy with me like this? Had no idea that it still existed, i thought it was completely replaced by the Users folder.

I should have reached out to you sooner and saved days of staring blankly at my code.