I would like to make a batch file that:
- Opens cmd.exe
- Within that Command Prompt runs
net useto display mapped share paths
- Leaves the window open so that I can run additional commands if I wish to
How can I do this?
Put in your batch file
start cmd.exe /k "net use"
Starts a new instance of the Windows XP command interpreter
CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF] [[/S] [/C | /K] string]
/C Carries out the command specified by string and then terminates
/K Carries out the command specified by string but remains