C
cu
Hi I am trying to write a simple batch file that opens a command
prompt under my domain username, then maps a network drive. I can do
this fine. The thing is that I would also like to change to this new
drive but can't figure out how to execute this command in the new
command prompt window that opens. The line of code is as follows.
runas /user:domain\username "cmd /k net use x: \\server\share"
I would like to add "x:" to the batch file. Any help would be great.
Thanks
prompt under my domain username, then maps a network drive. I can do
this fine. The thing is that I would also like to change to this new
drive but can't figure out how to execute this command in the new
command prompt window that opens. The line of code is as follows.
runas /user:domain\username "cmd /k net use x: \\server\share"
I would like to add "x:" to the batch file. Any help would be great.
Thanks