在批处理的新窗口中运行批处理文件? [英] Run a batch file in a new window from batch?
问题描述
我知道以前似乎有人问过这个问题,但我需要一个批次才能在新窗口中打开另一个批次.我试过了:
I know it seems this has been asked before, but I need a batch to open another batch in a new window. I've tried:
start abc.bat
cmd abc.bat
run abc.bat
和其他人.他们都在同一个窗口中打开或只是在新窗口中打开命令提示符,忽略我的批处理.是否有在新窗口中打开批处理文件的批处理命令?
and others. They've all opened in the same window or just opened Command Prompt in new window, ignoring my batch. Is there a batch command to open a batch file in a new window?
推荐答案
start abc.bat
不起作用有点奇怪,但我认为这是因为您在另一批的中间.你可能需要 call
:
It's a little bit strange that start abc.bat
doesn't work but I assume this is because you are running this in the middle of another batch. You probably need call
:
22:22:38.85 c:help call
Calls one batch program from another.
CALL [drive:][path]filename [batch-parameters]
根据具体问题为您提供 start call abc.bat
或 call start abc.bat
.
Giving you start call abc.bat
or call start abc.bat
depending on what the exact problem is.
这篇关于在批处理的新窗口中运行批处理文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!