Help with regedit

stubbyhs

New member
Power User
Local time
1:08 AM
Messages
139
Location
Northern Ireland
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

Computer Manufacturer/Model Number
HP Envy H8
OS
Windows 7 Ultimate 64 bit
CPU
Intel Core i7-3770
Motherboard
Intel (Laptop)
Memory
16 GB DDR3
Graphics Card(s)
NVIDIA GeForce GTX 660
Screen Resolution
1920x1080
Hard Drives
SSD 120GB
HDD 3TB

My Computer

Computer Manufacturer/Model Number
* BFK Customs *
OS
W 7 64-bit Ultimate
CPU
Intel Q9550 Yorkfield
Motherboard
ASUS P5Q Pro
Memory
8GB Dominator 8500C5D
Graphics Card(s)
ATI : XFX 5870
Sound Card
Realtek HD Audio 7-1
Monitor(s) Displays
1x 47" LCD HDMI & 3x 26" LCD HDMI
Screen Resolution
1920x1080P & 1920x1200
Hard Drives
1x 80GB Intel X25-M G2 SSD : 1x 500GB & 1x 640GB WD Caviar Black(s)
PSU
Corsair 620HX
Case
Cooler Master RC-690
Cooling
Tuniq Tower 120, 2x 140mm and 3x 120mm case fans
Keyboard
Microsoft 500
Mouse
Razer Diamondback 3G
Internet Speed
14 Mb/s
Other Info
1x Koutech 3Gb/s SATA HDD Hot Swap Rack
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

Computer Manufacturer/Model Number
HP Envy H8
OS
Windows 7 Ultimate 64 bit
CPU
Intel Core i7-3770
Motherboard
Intel (Laptop)
Memory
16 GB DDR3
Graphics Card(s)
NVIDIA GeForce GTX 660
Screen Resolution
1920x1080
Hard Drives
SSD 120GB
HDD 3TB
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
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

Computer Manufacturer/Model Number
HP Envy H8
OS
Windows 7 Ultimate 64 bit
CPU
Intel Core i7-3770
Motherboard
Intel (Laptop)
Memory
16 GB DDR3
Graphics Card(s)
NVIDIA GeForce GTX 660
Screen Resolution
1920x1080
Hard Drives
SSD 120GB
HDD 3TB
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
I think that would be the same as copying the batch file to the startup folder?
 

My Computer

Computer Manufacturer/Model Number
Three desktops and one laptop with good specs..
OS
Vista and now 7 in 32 and 64 bit.
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

Computer Manufacturer/Model Number
HP Compaq 8100 Elite SFF / Acer 8204WMLi
OS
Win7 Ent x64 / Win7 Ult x86
CPU
Core I5 / Core 2
Motherboard
HP / Acer
Memory
4GB / 2GB
Graphics Card(s)
ATI HD 4550 / ATI Mobility x1600
Sound Card
onboard
Monitor(s) Displays
2x 24" ViewSonic / 15"
Screen Resolution
1920 * 1080 each / 1680 * 1050
Hard Drives
160GB / 320GB + external storage
Other Info
work machine / personal laptop
Back
Top