Jump to content

Recommended Posts

Posted

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?

post-70-1097671436_thumb.png


Posted

create a cmd-file somewhere containing

@echo off
regedit /s regfilewithpath.reg

exchange regfilewithpath.reg to the path and name of the regfile you want to be saved (/s) to the registry

the autostart is done by creating a new key under hkey_local_machine\software\microsoft\windows\currentversion\run

name the key as you like it and set the value to "cmd /c regfilewithpath.reg". path and name as selected, of course

registrated user and company can be found in hkey_local_machine\software\microsoft\windows nt\currentversion

Posted

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.cmd

or use the XP2\$OEM$\$$\System32

Posted

there is no reason for a cmd file

from where-ever you would run that cmd file, rather run directly "regedit /s regfilewithpath.reg", to avoid dos box window.

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...