New
#1
BAT output
Hey guys!
I want to get a reg output file from a bat file
I will run x.bat it will give me x.reg
Everything seems to be ok. But i want double \\ character for path entry and it gives me one \ character
and i dont want the last \ character too
bat script and the outputs are here;
C:\OKUL\SINIF\OGRENCI\x.bat i run that
x.bat
x.reg i got thatCode:CD /D "%~dp0" set x=%~dp0 echo Windows Registry Editor Version 5.00>x.reg echo. >>x.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\*SuckSystem]>>x.reg echo "Name"="destro">>x.reg echo "Path"="%x%">>x.reg echo "ChatState"=hex:02>>x.reg echo "MiniDash"=hex:00>>x.reg echo "OpponentList"=hex:01>>x.reg Reg Import "x.reg"
result;Code:Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\SuckSystem] "Name"="destro" "Path"="C:\OKUL\SINIF\OGRENCI\" "ChatState"=hex:02 "MiniDash"=hex:00 "OpponentList"=hex:01
"Path"="C:\OKUL\SINIF\OGRENCI" i am taking this entry
"Path"="C:\\OKUL\\SINIF\\OGRENCI" i want this entry
Can you help me to fix this?