XP logout from the command line?

M

m westlake

Hi,

I'm trying to figure out how to have windows XP (pro) log out via the
command line. I occationally make use of DOS (or DOS-esque in the case
of XP) batch files to execute command line level arguments via a short
script type program and I'd like to be able to add a line that logs
the user off the machine at the end of the script.

Any suggestions?

Also, if anyone can recommend a source for other command line level
commands, I'd appreciate it.

Thanks,

Matt.
(mwestlake@------REMOVE THIS-----scubadiving.com to email me)
 
T

Torgeir Bakken (MVP)

m said:
I'm trying to figure out how to have windows XP (pro) log out via the
command line. I occationally make use of DOS (or DOS-esque in the case
of XP) batch files to execute command line level arguments via a short
script type program and I'd like to be able to add a line that logs
the user off the machine at the end of the script.

Any suggestions?

Hi

shutdown.exe -t 0 -l
 
G

Gord Dibben

Torgeir or whomever.

While we're on this subject........

I dual-boot with Windows 98SE and Windows XP. One Hard Drive, two partitions.

Currently set to boot to XP.

Sometimes I wish to boot into 98SE and I have two options. Change Boot.ini
before re-booting or waiting to select 98SE at re-boot.

Is there a *.bat or *.vbs script I could use so the OS could be selected
before re-boot so's I don't have to sit and wait to select OS or change
Boot.ini before shutdown? I set up two different Boot.ini's and tried a *.bat
file to swap them but ran into problems.

I think one of the Boot Manger Apps could do this, but would prefer *.bat or
*.vbs or something else native to Windows.

Gord
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top