- Thread Author
- #1
Assume I want to perform a command line command with parameters one time at next boot (under 64bit Win 7).
Therefore I want to create this command directly in the appropriate Registy key and not indirectly by
putting it into *.bat batch script and and call this from RunOnce
For simplicity assume I want to perform a "chkdsk" command but it could be others as well.
Now I have difficulties to setup a *.reg script. The following does NOT work:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\RunOnce]
"doitonce"="\"chkdsk Z: /F /V /R /I /C >C:\log\mychkdsk.log\""
What do I have to change?
Peter
Therefore I want to create this command directly in the appropriate Registy key and not indirectly by
putting it into *.bat batch script and and call this from RunOnce
For simplicity assume I want to perform a "chkdsk" command but it could be others as well.
Now I have difficulties to setup a *.reg script. The following does NOT work:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\RunOnce]
"doitonce"="\"chkdsk Z: /F /V /R /I /C >C:\log\mychkdsk.log\""
What do I have to change?
Peter