Help with regedit


  1. Posts : 139
    Windows 7 Ultimate 64 bit
       #1

    Help with regedit


    Hi there,

    I am just experimenting and trying to create a batch file that runs on start-up; just a message that pops up with "hi" sort of thing.

    The problem I am having is trying to get it to run on start up.

    I can do it with one computer running Win7 Pro but not with my Win7 Home that doesn't have Group Policy Object.

    I know you can do it through the registry, but can anyone give me a help as to how?

    Thanks alot.

    -stubbyhs
      My Computer


  2. Posts : 22,814
    W 7 64-bit Ultimate
       #2

    Hello



    Have you tried using Task Scheduler to run it, have a look at this tutorial at the link below?


    Task - Create to Run a Program at Startup and Log On
      My Computer


  3. Posts : 139
    Windows 7 Ultimate 64 bit
    Thread Starter
       #3

    Yeah this will work for what I want.

    But mainly for curiosity's sake, is there any way to do it through the registry? I know where the batch file is supposed to "go", as I understand it, but I just don't understand how.

    Thanks alot.
      My Computer


  4. Posts : 6,285
    Windows 10 Pro X64
       #4

    If you want the output of a batch file to remain visible, you need to start cmd.exe and have it invoke your batch file. Something like:

    cmd /k yourbatchfile.bat

    or cmd /k c:\pathtobatchfile\yourbatchfile.bat
      My Computer


  5. Posts : 139
    Windows 7 Ultimate 64 bit
    Thread Starter
       #5

    Em sorry Ztruker but that's not what I want at all.

    I want to know how to get a batch file to run on the start up by placing it in the registry without using the GPO.

    As I understand it, the GPO merely is an easy user interface for placing the script in the registry; but I want to try and learn how to do that without it.

    See what I mean?
      My Computer


  6. Posts : 6,285
    Windows 10 Pro X64
       #6

    Ok, it looks like here is a good place: HKCU\Software\Microsoft\Windows\CurrentVersion\Run

    Open a Command Prompt and enter reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" to see what is already there.

    Note: I found this using System Information for Windows (SIW) free version, under Software in the Autoruns area.
      My Computer


  7. Posts : 748
    Vista and now 7 in 32 and 64 bit.
       #7

    I think that would be the same as copying the batch file to the startup folder?
      My Computer


  8. Posts : 12
    Win7 Ent x64 / Win7 Ult x86
       #8

    essentially yes but easier for the user to find/delete.

    Another place would be in HKLM\Software\Microsoft\Windows\CurrentVersion\Run making it run for every user.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:19.
Find Us