There are serveral ways to start a program when windows starts. The easiest way to make and remove is the start menu/programs/startup section. Place a link to the program you would like to run and the boot adjustment is ready
The second option is the c:/windows/win.ini . This file contains a line (second or third) which says RUN= . This line should be altered to RUN="c:[programdir][programname].exe" . If you place the file in one of the environmental variables declared in autoexec.bat (SET=C:WINDOWS;C:WINDOWSCOMMAND) In this case (and just about any case) C:windows or C:windowscommand, you could leave the "C:[programdir]" section out of the line. Done!
The third line is to write a string to the registry, in the [HKEY_LOCAL_MACHINESOFTWAREMICROSOFTWINDOWSCURRENTVERSIONRUN] section. Write a string value, with the name you would like to display (Like "Windows Essentials") and assign the program dir and name as the value. Again, if the program is in an environmental variable directory, the directory is not necessary.
But, how is this done? Quite simple, get a registry acces API, or use regedit
[code]Public Function install(app As String, name As String)
Open "temp.reg" For Output As #1
, Chr(34) & name & Chr(34) & "=" & Chr(34) & app & Chr(34)
Shell "regedit /s temp.reg"
As you see, this is a quite simple function, and it only requires the fake name to display, and the program path.
That's about all I know about computer booting.
0 · ·