Jump to content

Question runonce.cmd


Recommended Posts

sorry for my english

i have this in my runonce.cmd

REG ADD %KEY%\810 /VE /D "ParamŠtres pour Default/All User" /f

REG ADD %KEY%\810 /V 1 /D "REG LOAD \"HKU\CUSTOM\" \"C:\Documents and Settings\Default User\NTUSER.DAT\"" /f

REG ADD %KEY%\810 /V 2 /D "START /WAIT REGEDIT /S %J%\DefaultUser.reg" /f

REG ADD %KEY%\810 /V 3 /D "START /WAIT REGEDIT /S %systemdrive%\key.cmd" /f

REG ADD %KEY%\810 /V 4 /D "REG UNLOAD \"HKU\CUSTOM\"" /f

when i execute, i have this error "START unknow command"

Why? And what is correct syntax?

Thanks

Link to comment
Share on other sites


Try either

REG ADD %KEY%\810 /VE /D "Paramtres pour Default/All User"
REG ADD %KEY%\810 /V 1 /D "REG LOAD \"HKU\CUSTOM\" \"%SYSTEMDRIVE%\Documents and Settings\Default User\NTUSER.DAT\""
REG ADD %KEY%\810 /V 2 /D "REGEDIT /S %J%\DefaultUser.reg"
REG ADD %KEY%\810 /V 3 /D "%SYSTEMDRIVE%\key.cmd"
REG ADD %KEY%\810 /V 4 /D "REG UNLOAD \"HKU\CUSTOM\""

or

REG ADD %KEY%\810 /VE /D "Paramtres pour Default/All User"
REG ADD %KEY%\810 /V 1 /D "REG LOAD \"HKU\CUSTOM\" \"%SYSTEMDRIVE%\Documents and Settings\Default User\NTUSER.DAT\""
REG ADD %KEY%\810 /V 2 /D "%COMSPEC% /C START \"\" /WAIT REGEDIT /S %J%\DefaultUser.reg"
REG ADD %KEY%\810 /V 3 /D "%COMSPEC% /C START \"\" /WAIT %SYSTEMDRIVE%\key.cmd"
REG ADD %KEY%\810 /V 4 /D "REG UNLOAD \"HKU\CUSTOM\""

Notice how there is no need for the /f switches. There is no /f switch for REG LOAD and REG UNLOAD, and no need for it in your REG ADD examples.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...