0

I'm trying retrieve the sub directory list of a subst drive (D:) using C# - DirectoryInfo.GetDirectories() but a DirectoryNotFoundException is thrown.

Does this not work with subst drives?

Is it possible to create/mount a folder on my server as the D: drive (alternative to subst) and access it via GetDirectories()?

Adam
  • 2,632
  • 8
  • 34
  • 60
  • Possible duplicate: http://stackoverflow.com/questions/3016223/how-to-determine-if-a-directory-path-was-substd – Alexander Bell Dec 18 '14 at 21:58
  • 1
    Did you run the `subst` command as the same windows user you're running the c#-program with? – John Dec 18 '14 at 22:04
  • @codemonkey : that was an useful tip . I just ran out into this problem and it seems to the user issue. Thanks. – srsyogesh Jan 30 '15 at 06:46

0 Answers0