Detect if autostart

  • Thread starter Thread starter Joh
  • Start date Start date
J

Joh

I've developed an application that is launched at system startup. Is
there a way to detect when an application is started by autostart and
when its launched by a user?
 
I've developed an application that is launched at system startup. Is
there a way to detect when an application is started by autostart and
when its launched by a user?

Best way I have figured out to do that is to specify a command line
switch in the auto startup shortcut. If present, the app knows it was
run from that shortcut.
 
Best way I have figured out to do that is to specify a command line
switch in the auto startup shortcut. If present, the app knows it was
run from that shortcut.

Thanks for the reply! Currently I'm using registry settings for the
autostart, no a short cut in the auto start-up folder, so it doesn't
work. Anyone else know of another way to solve this? Otherwize I guess
I have to go for the shortcut.
 
Joh said:
Thanks for the reply! Currently I'm using registry settings for the
autostart, no a short cut in the auto start-up folder, so it doesn't
work. Anyone else know of another way to solve this? Otherwize I guess
I have to go for the shortcut.
Put the switch in the registry setting rather than a shortcut?
Either way, you're still pointing to MyApp.exe /autorun
 
Back
Top