Astalavista Posted October 13, 2004 Posted October 13, 2004 Here is what i want to do but not quite sure how to do it.Attach is the image of System Properties.I want each time Windows Starts Up that a command.cmd will automatically launch a reg file to restoring the Name and Company.Oh, mighty MSFN gurus... how can i accomplish this task?
StefanMuench Posted October 13, 2004 Posted October 13, 2004 create a cmd-file somewhere containing @echo offregedit /s regfilewithpath.regexchange regfilewithpath.reg to the path and name of the regfile you want to be saved (/s) to the registrythe autostart is done by creating a new key under hkey_local_machine\software\microsoft\windows\currentversion\runname the key as you like it and set the value to "cmd /c regfilewithpath.reg". path and name as selected, of courseregistrated user and company can be found in hkey_local_machine\software\microsoft\windows nt\currentversion
Astalavista Posted October 13, 2004 Author Posted October 13, 2004 thanks for the info,let say i want to do this Unattended.I presume that i have to create a SFX file to extract the cmd-file to like c:\windows\system32 in my RunonceEX.cmdor use the XP2\$OEM$\$$\System32
buletov Posted October 13, 2004 Posted October 13, 2004 there is no reason for a cmd filefrom where-ever you would run that cmd file, rather run directly "regedit /s regfilewithpath.reg", to avoid dos box window.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now