windows - Run command on Command Prompt start -
is there way run command (eg: cd d:\test) on command prompt start , have instance of command prompt different shortcut/instance.
you can create shortcut has target of e.g.:
%comspec% /k ""c:\full_path_to\vsdevcmd.bat""
where .bat
file command(s) want run on startup. leave open command prompt after commands have executed.
(in case it's not obvious, shamelessly ripped 1 of developer command prompt shortcuts visual studio installs in start menu)
%comspec%
nice way of getting cmd
execute.
cmd:
/k : carries out command specified string , continues.
Comments
Post a Comment