Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi!
I am trying to create a simple batch file to change a drive mapping, then run a program from the new drive - without a prompt!
My attempt:
net use S: \\linux2\sage
S:\sage.exe <yesfile(Where yesfile is a textfile containing 'Yes Carriage return')
However, I get the message
net use S: \\linux2\sage
S: is currently \\LINUX1\SAGE.
The local device name S: is already in use.
Do you want to continue? (Y/N) [N]:How can I get this batch file to run Sage on the new drive without human intervention?
(S: will always already be mapped)Very many thanks in advance
Jkgla

"NET DELETE" is not a valid command in a Win98 DOS box. But you can try this:
echo y|net use S: \\linux2\sage>nul

Sorry posted the info wrong,
the command you can try isnet use s: /delete
This string will delete the s: drive mapping

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |