开发者

Launch new command line and exucte in that shell

This must be a real dumb question. And I cant figure out how.

What I want to do is launch a new 开发者_C百科command line with some arguments and excute some commands there.

Here is what I have in my .cmd

 CMD /k %EnvInstallPath% %wo% %var%

 cd /d %wo%\src

When I execute test.cmd, I see that the directory changes to %wo%, but the further cd src is not executed. I need to cd to a directory and execute few other commands.


When you run cmd with /k the console runs the command and then resumes with the prompt. I'm guessing that what you want is to run the command and resume with the next one, so you need to run cmd with /c instead.


put the other commands in a different bat file and

 start AFewOtherCommands.bat
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜