SUBST not working?

G

Guest

Hi All,

I'm using SUBST to simulate an additional drive:

C:\WINDOWS\system32\subst.exe e: c:\drive_e

When I try to create a file in a subdirectory of C:\drive_e (Dim sw As New
System.IO.StreamWriter(MyFile, Append, System.Text.Encoding.Default)) using
the virtual drive E:, my application throws a
'System.IO.DirectoryNotFoundException' exception. No problem if using the
real folder name. What can it be?

[XP Pro SP2, VB2005]

Thanks
 
M

Michael D. Ober

Ary you sure the Subst command is working. When I try using subst (XP Pro
SP2), I get invalid parameter for the drive letter.

Mike Ober.
 
G

Guest

Yes, I can navigate to that directory by entering "E:\MyFolder\etc..." at the
explorer's address bar. No problem here.


Michael D. Ober said:
Ary you sure the Subst command is working. When I try using subst (XP Pro
SP2), I get invalid parameter for the drive letter.

Mike Ober.

Yoavb said:
Hi All,

I'm using SUBST to simulate an additional drive:

C:\WINDOWS\system32\subst.exe e: c:\drive_e

When I try to create a file in a subdirectory of C:\drive_e (Dim sw As New
System.IO.StreamWriter(MyFile, Append, System.Text.Encoding.Default))
using
the virtual drive E:, my application throws a
'System.IO.DirectoryNotFoundException' exception. No problem if using the
real folder name. What can it be?

[XP Pro SP2, VB2005]

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top