请教各位朋友,我用以下命令在CMD下执行不能得到正确结果
set a="%windir%\System32\notepad.exe"="%windir%\System32\notepad.exe:*:Enabled:notepad.exe"&&set a=%a:\=\\%&&echo %a%
而分开执行就可以
set a="%windir%\System32\notepad.exe"="%windir%\System32\notepad.exe:*:Enabled:notepad.exe"
set a=%a:\=\\%
echo %a%
请问各位朋友,如何实现&&与%号混用,谢谢!
[ Last edited by hbby on 2009-12-11 at 14:21 ]
set a="%windir%\System32\notepad.exe"="%windir%\System32\notepad.exe:*:Enabled:notepad.exe"&&set a=%a:\=\\%&&echo %a%
而分开执行就可以
set a="%windir%\System32\notepad.exe"="%windir%\System32\notepad.exe:*:Enabled:notepad.exe"
set a=%a:\=\\%
echo %a%
请问各位朋友,如何实现&&与%号混用,谢谢!
[ Last edited by hbby on 2009-12-11 at 14:21 ]


