Computing.Net > Forums > Programming > Running a program on startup

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Running a program on startup

Reply to Message Icon

Name: Ian
Date: December 10, 2003 at 15:27:41 Pacific
OS: xp
CPU/Ram: 512
Comment:

Ok, here is my problem. I have created a batch file that places a registry key in
HKLM,Software\Microsoft\Windows\CurrentVersion\Run
However, the problem is, is that I want a BATCH file to run when the pc reboots, not an executable file. Is this possible? I got a .exe file to run when I put a reg key in the HKLM,Software\Microsoft\Windows\CurrentVersion\Run
But when I change the key to run a BATCH file on startup, it doesn't execute the batch file. Can you please help...Below I have included the batch file incase you need to see if Im messing it up or something.


*****************
BATCH FILE
*****************
@ECHO OFF


echo [version] >> norton.inf
echo signature = "$CHICAGO$" >> norton.inf
echo [DefaultInstall] >> norton.inf
echo AddReg = add.reg >> norton.inf
echo [add.reg] >> norton.inf
echo

HKLM,Software\Microsoft\Windows\CurrentVersion\Run,"winmine.exe",,"C:\I386\winmine.exe" >> norton.inf


rundll32.exe setupapi,InstallHinfSection DefaultInstall 132

.\norton.inf

*********************************


THANKS FOR YOUR HELP!



Sponsored Link
Ads by Google

Response Number 1
Name: dtech10
Date: December 11, 2003 at 15:13:47 Pacific
Reply:

Hi
Will the batch file run if you put it in
Startup Section on the Start Menu.



0
Reply to Message Icon

Related Posts

See More


Inputbox question Java- Autofinding date



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Running a program on startup

Fire a program on another PC www.computing.net/answers/programming/fire-a-program-on-another-pc/11970.html

i need someone to make me a program www.computing.net/answers/programming/i-need-someone-to-make-me-a-program/8184.html

START command won't work on startup www.computing.net/answers/programming/start-command-wont-work-on-startup/17539.html