I use VBScript to add the below line to HKLM\Sofware\Microsoft\Windows\CurrentVersion\Run.
wscript.exe C:\Documents and Settings\Administrator\Desktop\Domain12.vbs
It adds the line to registry but I want it to be added in the below format (With Inverted Comma's)
wscript.exe "C:\Documents and Settings\Administrator\Desktop\Domain12.vbs"
I use the following command:
strCommand = "cmd /c REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v ""VBS Join Domain"" /d ""wscript.exe C:\Documents and Settings\Administrator\Desktop\Domain12.vbs /f"
What are the changes i have to make in the above command. Please help.