:createCurnetPath
set curnet=CurnetPath.txt
cd > %curnet%
if exist %curnet% goto getCurnetPath
:getCurnetPath
for /f "tokens=1 delims==" %%e in (%curnet%) do (
set getPath=%%e
)
echo Get the curnet path : %getPath%
if "!getPath!"=="" goto createKey
如: CurnetPath.txt内容
c:\test\1
可惜注册表要的是
c:\\test\\1
如何解决?