How can I get a program to turn on during start up with out the start up folder..using Autoexec.bat would be nice
any tips?
Printable View
How can I get a program to turn on during start up with out the start up folder..using Autoexec.bat would be nice
any tips?
i think you have to rigester it, but how i don't remember, or i should say i don't know
If you don't want to touch the registry, then all you need just copy you program into the Startup folder.
If you wish to hide you setting in the registry without let others people know it. You can do it this way with out using a complex API function.
All you need is to create a new file with extension ".reg"
Exmaple:
AddStartup.reg
then you need to append the follwoing line into this file:
For Networking PC
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
"MyProgram"="C:\\Temp\\Disable.exe"
For Stand Alone PC
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"MyProgram"="C:\\Temp\\Disable.exe"
You must follow below format:
Content Format
<Registry Root String>
<Description>=<File Path + FileName>
After create this file, all you need is just Shell this .reg file with the regsvr32.exe:
Shell "Regsvr32.exe AddStartup.reg , vbHide"
[Edited by Chris on 06-19-2000 at 10:41 PM]