[英]Batch file not working correctly
Here's my batch file: 这是我的批处理文件:
@echo on
G2GsiBridge_ROOT=C:\Users\123\Documents\testing\Debug
"%G2GsiBridge_ROOT%\Gsi" %1 %2
When I double click it the console pop up for a fraction of a second and then disappears. 当我双击它时,控制台会弹出一秒钟,然后消失。 Gsi.exe doesn't run.
Gsi.exe无法运行。 I'm curious if I'm messing up the syntax somewhere.
我很好奇我是否将语法弄乱了。
Also, my gsi.exe takes 2 command line arguments and i'm confused on what %1 and %2 are suppose to do. 另外,我的gsi.exe需要2个命令行参数,我对%1和%2应该做什么感到困惑。 I'm pretty sure they pass the arguments in, but aren't they empty currently?
我很确定他们传入了参数,但是当前它们不是空的吗? Do I need to set 1 and 2 to something in order for my program to run correctly?
我是否需要将1和2设置为某种值才能使程序正确运行?
Thanks 谢谢
第二行缺少set
关键字:
set G2GsiBridge_ROOT=C:\Users\123\Documents\testing\Debug
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.