"启动"在.BAT批处理文件命令 [英] "start" command in .bat batch file

查看:156
本文介绍了"启动"在.BAT批处理文件命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常简单的批处理文件,其中有previously为我工作,但不再会。

I have an extremely simply batch file, which has previously worked for me but no longer will.

start /wait steamcmd +login anonymous +force_install_dir C:\Games\CSGOServer\TEST
pause

有关某种原因,我一旦运行该文件得到以下错误:

For some reason I get the following error upon running the file:

http://imgur.com/Xd8di1Y (对不起,没有足够的代表使用HTML enbed)

http://imgur.com/Xd8di1Y (sorry, not enough rep to enbed with html)

任何想法,为什么开始将无法正常工作因为它显然是一个公认的命令?我也注意到在这方面奇怪的字符,但真的不能告诉这些哪里会来的。

Any ideas why start will not work given that it is clearly an accepted command? I did notice the strange characters in front of this but cannot really tell where these would come from.

先谢谢了。

达蒙

推荐答案

看来有人保存在UTF-8格式的批处理文件。用记事本打开该文件并单击的文件和RARR;另存为... 的。改变字段的编码的为ANSI,点击的保存的。确认您要替换文件。

Looks like someone saved that batch file in UTF-8 format. Open the file with Notepad and click File → Save As.... Change the field Encoding to "ANSI" and click Save. Confirm that you want to replace the file.

这篇关于"启动"在.BAT批处理文件命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆