传值打开cmd文件

Pass value to open cmd file

我需要 运行 来自特定位置的 cmd 才能调用另一个内部 exe 文件。

详情请看: Cmd 提示符应使用以下路径打开:

D:\program\ser\conf>

我用过这个命令:

cmd /k "cd /D D:\program\ser\conf"

现在,我需要根据我的要求传递以下参数。

"D:\program\ser\int.exe" "D:\program\ser\conf\script.txt"

现在,我需要根据我的要求传递以下参数。

使用以下批处理文件。

test.cmd:

cd /D D:\program\ser\conf
D:\program\ser\int.exe D:\program\ser\conf\script.txt