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


My System SpecsSystem Spec
28 Feb 2011   #2
Bare Foot Kid
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 10 Pro 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 10 Pro 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
Thread Forum
How to get the Regedit?
Hi All, When I am trying to go to Regedit from the start icon, I get the regedit and it disappear after a second. How can I go there? Thanks
Installation & Setup
Regedit help
I am trying to delete a registry sub-key and its not complying. I have full control, I am the owner and I am running regedit as an administrator on an admin profile. However, when ever I try to delete it I get an error. "Could not delete key <key name>: an error occurred while deleting" Any...
General Discussion
Using regedit
A quick and hopefully simple query I was cleaning an old machine the other day and was using Revo free but then found that programs were still listed in Programs, and in the "Computer" program lists. Now I opened regedit out of curiosity and found that some of the "deleted" apps were still...
General Discussion
can't get into regedit!!!
i can't get into my registry. I have tried a few google options but they don't explain enough. One was "C:\WINDOWS\system32" and then to look for which isn't there, Help please
Regedit disabled
So heres my problem regedit has been disabled by administrator in windows 7 SO i know this is from a virus because my task manager is down also, I am running MSE but i guess it didnt catch it, any ideas how to fix this And yes i have tried the idea below with no luck, 1. Press...
System Security
Can not open regedit
windows 7 can open regedit with command prompt but not from doing a search and then clicking on regedit.exe . also in my taskbar the network internet access icon has a red x but i do not have a proble accessing the internet. thanks
General Discussion

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 17:21.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App