R
Rajesh
I need to delete some files when a user is not logged on.
Either I have to logoff the user before I delete the files
or should know if a user is logged on so I will not delete
the files at that time
I tried to log off using the logoff.exe. From command
prompt the batch file ran fine. But when I schedule it to
logoff, it did not logoff the user.
So then I tried to check the %USERNAME%. This also works
fine in the command prompt. But When I schedule it, the %
USERNAME% is blank.
Please guide me. LEt me know how can I logoff using batch
commands and run it as a scheduled process or how to get
the %username% using batch commands.
Thanks,
Rajesh
Either I have to logoff the user before I delete the files
or should know if a user is logged on so I will not delete
the files at that time
I tried to log off using the logoff.exe. From command
prompt the batch file ran fine. But when I schedule it to
logoff, it did not logoff the user.
So then I tried to check the %USERNAME%. This also works
fine in the command prompt. But When I schedule it, the %
USERNAME% is blank.
Please guide me. LEt me know how can I logoff using batch
commands and run it as a scheduled process or how to get
the %username% using batch commands.
Thanks,
Rajesh