Batch File - Log Off

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I use a batch file for backups.
I would like to use it at log off.
Is there a command line for log off that could be placed in a batch file so
that the backup would run and then log the user off?

* * *
xcopy . . .
log off . . .
* * *

Any ideas?

(Macs have a folder to run at shut down)

tia,
Michael
 
Michael J Blane said:
I use a batch file for backups.
I would like to use it at log off.
Is there a command line for log off that could be placed in a batch file so
that the backup would run and then log the user off?

You can create scripts for Logon/Logoff. Check "Help & Support" for
details about the Windows Scripting Host (WSH).
 
Michael said:
I use a batch file for backups.
I would like to use it at log off.
Is there a command line for log off that could be placed in a batch file so
that the backup would run and then log the user off?

* * *
xcopy . . .
log off . . .
* * *

Any ideas?

(Macs have a folder to run at shut down)

tia,
Michael

the command it "shutdown -l"

Eric
 
Back
Top