Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shut Down App

Status
Not open for further replies.
Dec 24, 2001
857
GB
I've got a workstation where at startup it runs a batch file which I created. Anyway, all this file does is check if %USERNAME% is equal to something and if it is perform some action.
What I want to do is if the username is equal to whatever, it shuts down the computer. The only problem with this is that I don't have an app to do this and can't find the one NT uses (I thought it'd just be something like shutdown.exe).
Does anyone know of an app I can download, or the one NT uses?

Thanks
 
Just to add to it:

Can I use the PAUSE command to make it wait five seconds and then continue rather than have them have to press a key?
 
Could try the shutdown prog here There are lots of similar progs if you look for them (Google?)

shutdown.exe only seems to exist in XP (don't know if its in resource kit for NT/2K). XP version runs on 2k, but wouldn't run on my NT server (might be because I haven't got desktop update installed).

Don't know about pause - thought it just suspended processing till somebody hits a key - not a timer.
 
shutdown.exe is available in the NT/W2k resource kits. You can configure it to popup with a notification of shutdown over (say) 10 seconds (which cannot be cancelled) or you can get it to do an immediate shutdown.

I have used this successfully when playing a prank on a colleague! May I ask if this is the same as what you are trying to achieve?? -----------------------------------------------------
"It's true, its damn true!"
-----------------------------------------------------
 
Well in this case it is :) ...last time they used my computer I had to format it and start again. This'll give them a nice surprise next time they logon.
I also figured that an app like this could come in useful in future as well.

I'll give that link a try and let you know how I get on.

Regards
 
I downloaded that program and it does pretty much what I wanted.
I've also found a solution for the delay:

Theres a file called 'Be.exe' (it comes with the resource kit I think...not sure though) and one of the commands for that is 'be delay'.

Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top