Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 无法在cmd中运行bat文件命令_Windows_File_Batch File_Cmd - Fatal编程技术网

Windows 无法在cmd中运行bat文件命令

Windows 无法在cmd中运行bat文件命令,windows,file,batch-file,cmd,Windows,File,Batch File,Cmd,当我尝试运行bat文件时,我收到此消息 我的bat文件代码是: 回显%0 停顿 只有我的系统是windows 8.1 64位 提前感谢稍微挖掘一下,就会发现您已将文件保存为Unicode格式,开头的三个字符是字节顺序标记的UTF-8编码。在记事本中打开批处理文件,确保这些字符不可见,然后使用“另存为…”将其保存,并确保“编码”下拉列表设置为ANSI。非常感谢您提供了快速且解释清楚的答案。@user3438908进一步建议阅读:@CraigYoung-感谢链接到该文件;我自己也应该这么做,特别是

当我尝试运行bat文件时,我收到此消息

我的bat文件代码是:

回显%0 停顿

只有我的系统是windows 8.1 64位


提前感谢

稍微挖掘一下,就会发现您已将文件保存为Unicode格式,开头的三个字符是字节顺序标记的UTF-8编码。在记事本中打开批处理文件,确保这些字符不可见,然后使用“另存为…”将其保存,并确保“编码”下拉列表设置为ANSI。

非常感谢您提供了快速且解释清楚的答案。@user3438908进一步建议阅读:@CraigYoung-感谢链接到该文件;我自己也应该这么做,特别是因为我从中获得了信息,可以将奇怪的字符识别为BOM的UTF-8。