Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Help with regedit

28 Feb 2011   #1

Windows 7 Ultimate 64 bit
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 Windows 7 Pro but not with my Windows 7 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.


My System SpecsSystem Spec

28 Feb 2011   #2
Microsoft MVP

W 7 64-bit Ultimate


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 System SpecsSystem Spec
01 Mar 2011   #3

Windows 7 Ultimate 64 bit

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 System SpecsSystem Spec

01 Mar 2011   #4

Windows 8 Core X64

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 System SpecsSystem Spec
01 Mar 2011   #5

Windows 7 Ultimate 64 bit

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 System SpecsSystem Spec
01 Mar 2011   #6

Windows 8 Core X64

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 System SpecsSystem Spec
02 Mar 2011   #7
Microsoft MVP

Vista and now 7 in 32 and 64 bit.

I think that would be the same as copying the batch file to the startup folder?
My System SpecsSystem Spec
02 Mar 2011   #8

Win7 Ent x64 / Win7 Ult x86

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 System SpecsSystem Spec

 Help with regedit

Thread Tools

Similar help and support threads for2: Help with regedit
Thread Forum
Regedit help General Discussion
Using the regedit command Chillout Room
Solved Using regedit General Discussion
Solved can't get into regedit!!! Software
Solved Can not open regedit General Discussion
Activision Regedit Gaming
Regedit backup please Backup and Restore

Our Sites

Site Links

About Us

Find 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 06:04 PM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33