Windows 7 Forums


Windows 7: Help with regedit

28 Feb 2011   #1

Windows 7 Ultimate 64 bit
Northern Ireland
 
 
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.

-stubbyhs
My System SpecsSystem Spec

28 Feb 2011   #2

W 7 64-bit Ultimate
The Lowcountry
 
 

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

Windows 7 Ultimate 64 bit
Northern Ireland
 
 

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 7 Pro X64
Space Coast of Florida
 
 

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
Northern Ireland
 
 

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 7 Pro X64
Space Coast of Florida
 
 

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

Vista and now 7 in 32 and 64 bit.
Denmark
 
 

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
Reply

 Help with regedit problems?



Thread Tools



Similar help and support threads for: Help with regedit
Thread Forum
Solved Using regedit General Discussion
Regedit query Chillout Room
Solved can't get into regedit!!! Software
Activision Regedit Gaming
Regedit problem General Discussion


All times are GMT -5. The time now is 10:51 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

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
  

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