i’m trying this:
@echo off
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\ /v siavash /t REG_SZ /d "c:arda1" /f
start explorer.exe
pause
but i’m getting this in registry
c:arda1
without double quotes
did anybody have the same problem?
That is what is expected. The quotes are used to quote the string you want to add, they are mostly used when the string has a space, but work the same even when they don’t.
If you want to add quotes around the string then try this
The
\"is the escape character for the"sign, and the outside quotes are just quoting the whole string as normal.Hope this helps.