Command Prompt Question
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
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
.
Relevant Pages
- Re: Command prompt is displayed briefly, then disappears
... If you search for accessories and then open the folder and click command ... prompt, will it run? ... opens. ... MS MVP-IE, Mail, Security, Windows Client - since 2002 ... (microsoft.public.windowsxp.general) - Running FTP Batch file on server
... I want to download hourly definitions from the Symantec ftp site using a ... The batch file fails and if at the command ... prompt I type open ftp.symantec.com I just get an error: ... (microsoft.public.windows.server.sbs) - Re: Batch file behavior
... Hard to remember the DOS world but what about adding the "pause" command at ... echo. ... wrote a simple batch file to copy a file. ... a batch file that opens the ... (microsoft.public.windowsxp.general) - Re: L clickg folder goes to c prompt or R clickg folder displays "open command window here"
... Type or paste the following command into Start | Run and click OK... ... folder_open.vbs- Fixes the problem where Search or Command Prompt opens ... MS-MVP Windows Shell/User ... (microsoft.public.windowsxp.customize) - RE: Setting env and path variables
... If you set up a batch file, with the commands below and run it in a command ... prompt under winXP it should work. ... Subject: Re: Setting env and path variables ... (comp.os.msdos.djgpp) |
|