• Running a .reg file automatically (WinXp SP1)

    Home » Forums » AskWoody support » Windows » Windows Vista, XP and earlier » Questions: Vista, XP back to 3.1 » Running a .reg file automatically (WinXp SP1)

    • This topic has 1 reply, 2 voices, and was last updated 22 years ago.
    Author
    Topic
    #386934

    Running WinXP SP1.

    I need to run two .reg files boot time and periodically thereafter. What is the best way to do this?

    I want these files to run prior to anything else in the system right after login. Should I use the registry run keys or autoexec.bat?

    Can I run them as a scheduled task, say every hour? How do I do this with a .reg file? What parms are needed to make the running silent so I don’t have to reply to standard messages (Do you want to…) and the follow-up completed action message? Thanks!

    Viewing 0 reply threads
    Author
    Replies
    • #673667

      You can create one vbs file instead of two reg files. The syntax is like this:

      Set WshShell = WScript.CreateObject(“WScript.Shell”)
      WshShell.RegWrite “HKCUMyRegKeyEntry”, 2, “REG_DWORD”
      WshShell.RegDelete “HKCUMyRegKeyEntry”, 2, “REG_DWORD”
      Set WshShell = Nothing

      As you see, there is no messages. So be careful.

      To run vbs at logon, you can put the entry pointing to it in both HKLMSoftwareMicrosoftWindowsCurrentVersionRun and HKCUSoftwareMicrosoftWindowsCurrentVersionRun.
      To run vbs on scheduled basis, create a new task (Start | All Programs | Accessories | System Tools | Scheduled Tasks | Add Scheduled Task and follow the wizard).

    Viewing 0 reply threads
    Reply To: Running a .reg file automatically (WinXp SP1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: