Discussion Locked

Logon Script Help

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I want to add a line to my users logon scripts (.bat file) to run a program once. I know what to write have the program run but I don't know what to add to the line to have it only occur the next time they logon. Any Ideas

3 replies

by beermonster

Hi,
Why not simply add a flag file?

If exist c:\flag.flg goto next
start myapp.exe
echo app run > c:\flag.flg
:next

Think about where you will create the flag file, so that your users don't accidently delete it. hope this helps....

This discussion is closed to new replies.