Re: subst command in a batch file
- From: egberto@xxxxxxxxxxxxxx
- Date: 20 Jun 2006 02:35:36 -0700
Pegasus (MVP) wrote:
<egberto@xxxxxxxxxxxxxx> wrote in message
news:1150794294.351761.201930@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I've made a batch file with the subst command:
subst c: e:\
however when I run this file, the dos window is opened and this line is
repeated endlessly, until I close the window. It is not executed. Help.
There are several problems with your batch file:
- Drive C: is most likely your system drive letter. It is
not available for substitution. Use a different letter.
- What is the point of your command? Substitution is
useful when assigning a drive letter to a folder, e.g.
subst L: "c:\My Documents\berto\Desktop".
- It is likely that you called your batch file "subst.bat".
This causes your looping problem. Never ever give
a batch file the same name as a system program - it
will cause you to pull out all your hair!
Thanks,
No I don't have a c: drive, that's why I wrote the batch file in the
first place; some programs don't work properly and this is the fix
recommended by Microsoft.
Changing the name to testxxxxx3.bat doesn't help, the looping problem
persists.
Indeed I lost some hair...
.
- Follow-Ups:
- Re: subst command in a batch file
- From: Uwe Sieber
- Re: subst command in a batch file
- References:
- subst command in a batch file
- From: egberto
- Re: subst command in a batch file
- From: Pegasus \(MVP\)
- subst command in a batch file
- Prev by Date: Re: bucketstrip.xml
- Next by Date: Re: Why does my Sony DCR-TRV19 Camera not appear when using Windows XP Pro SP2?
- Previous by thread: Re: subst command in a batch file
- Next by thread: Re: subst command in a batch file
- Index(es):
Relevant Pages
|