Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.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
Batch file 批处理脚本-字符串中的引号_Batch File - Fatal编程技术网

Batch file 批处理脚本-字符串中的引号

Batch file 批处理脚本-字符串中的引号,batch-file,Batch File,我有以下脚本: @ECHO OFF FOR /F "tokens=*" %%A IN (%ThisService_WorkingDirectory%MPMissions\%ThisService_mapname%\init.sqf) DO ( ECHO %%A IF "%%A" EQU "call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile

我有以下脚本:

@ECHO OFF
FOR /F "tokens=*" %%A IN (%ThisService_WorkingDirectory%MPMissions\%ThisService_mapname%\init.sqf) DO (
  ECHO %%A
  IF "%%A" EQU "call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";             //Compile regular functions" (
    TYPE D:\snapbuild\snapbuild.txt
  )
) >> temp.txt
move /y temp.txt %ThisService_WorkingDirectory%MPMissions\%ThisService_mapname%\init.sqf
但这是给了错误的结果,事实上,它似乎没有做任何事情

如何在脚本中正确使用包含引号


我尝试在外部引号中使用“”,但这不起作用。

在双引号中使用^escape字符或双引号。看,我想这就是你要找的。上面提到的都不管用。尝试了双引号,尝试了“^”,也尝试了/”