SULTAN
asked on
AutoStart dirs!
How to find the 2 autostart dirs?
2 autostart dirs? Nope, there are at least 11:
HKEY_LOCAL_MACHINE\Softwar e\Microsof t\Windows\ CurrentVer sion\Run
HKEY_LOCAL_MACHINE\Softwar e\Microsof t\Windows\ CurrentVer sion\RunOn ce
HKEY_LOCAL_MACHINE\Softwar e\Microsof t\Windows\ CurrentVer sion\RunSe rvices
HKEY_LOCAL_MACHINE\Softwar e\Microsof t\Windows\ CurrentVer sion\RunSe rvicesOnce
HKEY_CURRENT_USER\Software \Microsoft \Windows\C urrentVers ion\Run
HKEY_CURRENT_USER\Software \Microsoft \Windows\C urrentVers ion\RunOnc e
HKEY_CURRENT_USER\Software \Microsoft \Windows\C urrentVers ion\RunSer vices
HKEY_CURRENT_USER\Software \Microsoft \Windows\C urrentVers ion\RunSer vicesOnce
C:\Windows\Startmenu\Progr ams\Startu p
C:\Windows\Win.ini\[Window s]\run
C:\Windows\Win.ini\[Window s]\load
Regards, Madshi.
HKEY_LOCAL_MACHINE\Softwar
HKEY_LOCAL_MACHINE\Softwar
HKEY_LOCAL_MACHINE\Softwar
HKEY_LOCAL_MACHINE\Softwar
HKEY_CURRENT_USER\Software
HKEY_CURRENT_USER\Software
HKEY_CURRENT_USER\Software
HKEY_CURRENT_USER\Software
C:\Windows\Startmenu\Progr
C:\Windows\Win.ini\[Window
C:\Windows\Win.ini\[Window
Regards, Madshi.
> at least 11
***at least***
:-) LOL Madshi, I liked that :-)
"That you're paranoid doesn't mean they're not after you"
:-)
Keep hackin'
***at least***
:-) LOL Madshi, I liked that :-)
"That you're paranoid doesn't mean they're not after you"
:-)
Keep hackin'
:-) Well, you can do ugly things like putting a little vxd into the system\iosubsys folder, than the vxd is loaded automatically at startup. Or you can install a dummy driver like a printer driver, or you can register a shell extension. All those dlls/drvs/vxds can start level 3 applications later. If you count such hacks, we have more than 11 ways to do autostarting... (-:
Or you can use Windows NT/2K, where you've got two startup dirs in the start menu: one for the user logged in and one for all users.
And, I think, Netware login scripts too?
For that matter if someone was silly enough to use an unsecured active desktop wall paper (and click through the warning message) you edit the wall paper & use the WSh to call anythin you wanted. It's a good thing you can't use an .hta for a wall paper or someone could set your wallpaper to an .hta that _looked_ like your wall apper & you'd never know it.
GL
Mike
For that matter if someone was silly enough to use an unsecured active desktop wall paper (and click through the warning message) you edit the wall paper & use the WSh to call anythin you wanted. It's a good thing you can't use an .hta for a wall paper or someone could set your wallpaper to an .hta that _looked_ like your wall apper & you'd never know it.
GL
Mike
ASKER
C:\Windows\Startmenu\Progr ams\Startu p
thats the one i wanted, but that can bee difrent on difrent computers
thats the one i wanted, but that can bee difrent on difrent computers
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Use the SHGetFolderLocation API, using CSIDL_STARTUP.
That'll get the folder, whatever the path is
That'll get the folder, whatever the path is
ASKER
Isent there like 2 start up groups?? Users & All Users?
Sutan, only on Windows NT/2K/XP. Windows 9X/ME do not have this feature.
If you're tryna run your program when Windows starts,
place the path to your EXE in the Registry key
HKEY_LOCAL_MACHINE\Softwar
like this:
with TRegistry.Create do
try
RootKey := HKEY_LOCAL_MACHINE;
OpenKey('Software\Microsof
WriteString('MyDelphiApp',
CloseKey;
finally
Free;
end;
you can make your app run exclusively (ie. Windows doesn't
finish loading till your app is done) by writing to the
RunOnce key instead.
rondi.