Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Determine if login is in progress?

May
13,802
211
In ...\start menu\programs\startup I have a shortcut to logon.btm. The BTM runs automatically when I login interactively. Can the BTM determine if it's being auto-run in this way.

I could, alternatively, use a scheduled task triggered by a login. I have the same question about that scenario. Can the BTM determine if it's being run as a scheduled task (and, if so, whether it's a real login vs. the task being run on demand).
 
Can you determine this by checking the %_parent of each start method?

I use %_parent to determine the name of the parent process that started TCC,
which allows me to see from which process the current TCC.EXE was launched,
and take action accordingly.

Joe
 
Can you determine this by checking the %_parent of each start method?

I use %_parent to determine the name of the parent process that started TCC,
which allows me to see from which process the current TCC.EXE was launched,
and take action accordingly.

Joe
Good idea! If I used the logon-triggered task, _parent would probably be taskhostw.exe (a dead giveaway). I don't know about the Startup folder but I'll experiment.
 
MAYBE you could use JOB / JOBMONITOR for that?
 
Back
Top