Re: Running a DOS command at startup
- From: "thadpole" <thadpole@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 5 Apr 2005 09:39:15 -0700
Hey thanks, this worked! I also had to add another line in the batch file
which specified a path to the working directory. Otherwise, some dll's
wouldn't load. Thanks again!!!
"Dave Patrick" wrote:
> Add a couple of lines to your batch. The second line will allow 5 seconds or
> so for subst before starting the program.
> subst z: d:\
> ping.exe -n 6 127.0.0.1 >nul
> start "" "Z:\Program Files\myprog.exe"
>
> --
> Regards,
>
> Dave Patrick ....Please no email replies - reply in newsgroup.
> Microsoft Certified Professional
> Microsoft MVP [Windows]
> http://www.microsoft.com/protect
>
> "thadpole" wrote:
> | Hello,
> | I want to run the following dos command: subst z: d:\ when my Server
> 2003
> | starts up because I have a program that can only read and write to the
> "z:"
> | drive. It needs to be available at all times, no matter which user is
> logged
> | in. I tried putting it into a batch file, then running the batch file in
> the
> | "startup" menu for all users. This works fine, except I also want the
> users
> | to be able to automatically start this particular program using the RDP
> | client when they login to Terminal Services. The trouble is that the
> "subst
> | z: d:\" command doesn't run before the program starts. Hence, the program
> | doesn't work. If the user logs in normally using the RDP client, then
> runs
> | the program manually, it works fine.
> | What can I do?
> | Thanks!!!
>
>
>
.
- Follow-Ups:
- Re: Running a DOS command at startup
- From: Dave Patrick
- Re: Running a DOS command at startup
- References:
- Running a DOS command at startup
- From: thadpole
- Re: Running a DOS command at startup
- From: Dave Patrick
- Running a DOS command at startup
- Prev by Date: Re: Winnt.exe Unattended Setup for 64-bit Server 2003.
- Next by Date: cmdlines not executing
- Previous by thread: Re: Running a DOS command at startup
- Next by thread: Re: Running a DOS command at startup
- Index(es):
Relevant Pages
|