cmd - Direct the command to a newly opened separate command prompt using bat file -
I have a command prompt shortcut that runs a bit file, when it launches. Once I started it, I will issue another order, my_command, which is added as the doskey macro in To the extent that this is so. I have a CMD shortcut with the target set: / Code> where Once the cmd prompt is active, I should issue another command, say Inside I have tried that which is: command How do I Try it: Answer to your edit: Bad news You can not run a Doskey macro from a batch file. References: Can you run the command that you are installing with Doski? login.bat
C: \ Windows \ System32 \ cmd.exe / k "D: \\ login.bat"
login.bat sets the environment.
my_command (which should be run in the currently open CMD prompt)
login.bat I have the following lines
... doskey my_command = another_login.bat <32> <32> < P> I was trying to write a bat file to do the whole thing.
Start C: \ Windows \ System32 \ Cmd.exe / k "D: \\ login.bat" my_command
my_command goes to the command prompt of the bat file.
Start C: \ Windows \ System32 \ cmd.exe / k "D: \\ login.bat & Devenv"
Start C: \ Windows \ System32 \ cmd.exe / k "D: \\ login.bat & Another_login.bat DEBUG 32" < / Div>
Comments
Post a Comment