473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

SUBST not working?

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

May 24 '07 #1
2 4111
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" <yo***@iec.co.ilwrote in message
news:5C**********************************@microsof t.com...
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



May 24 '07 #2
Yes, I can navigate to that directory by entering "E:\MyFolder\etc..." at the
explorer's address bar. No problem here.
"Michael D. Ober" wrote:
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" <yo***@iec.co.ilwrote in message
news:5C**********************************@microsof t.com...
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

May 24 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Phil Powell | last post by:
I need to find a PHP equivalent to a very familiar TCL command "subst" (see http://www.hume.com/html84/mann/subst.html ). This command will take a string and evaluate anything TCL inside of it...
2
by: foldface | last post by:
Hi Does anyone know why subst doesn't work with IIS on XP? If I do sub o: d:\myProj and look for o:\myProj then IIS just can't see it? This is a very useful feature that I would miss if it...
1
by: Chris | last post by:
I'm trying to open an xml document on my computer. It is on a subst drive f. I get a System.IO.DirectoryNotFoundException when I try to open the file. When I switch to the C drive it works fine....
5
by: Martin Heuckeroth | last post by:
Hi We are working on a webservice application and are having some problems with the cookies and/or sessions. We have them working on our intranet but then its not working on the internet. We...
5
by: tshad | last post by:
I have been working with setting my drop boxes to allow double clicking to select an item. It worked fine until I made some changes. I then stripped the page down to the bare essentials to find...
8
by: jojobar | last post by:
Okay, I am trying to do is to test the webresource in 2.0 1. I created a new project with assembly name (and default assembly name) "Office". 2. I added the following to the AssemblyInfo.cs...
2
by: Don | last post by:
I'm having problems with intellisense, autocomplete, etc. suddenly not working in certain classes of a project I'm working on. All the options are set, and it all works fine for most classes, but...
9
by: MSDNAndi | last post by:
Hi, I have a set of simple webservices calls that worked fine using .NET Framework 1.0. I am calling a Java/Apache based webservices, the calling side is not able to supply a proper WSDL. ...
4
by: gamename | last post by:
Hi, In TCL, you can do things like: set foobar "HI!" set x foo set y bar subst $$x$y HI! Is there a way to do this type of evaluation in python?
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.