
shutdown windows nt worstation or windows 95/98
Quote:
> Anyone has an example of a simple application that be to shutdown the
> workstation or windows 95/98 ?
> I would like to code this application in VB and distribute it to all the
> users so that when they leave the office for the
> day, the PC will be automatically shut down if the user didn't do so.
> And also upon user start their PC, the application will be activated and
> show on the systray.
On NT you don't need a program to do that, but I'm not sure about
W9x.
A shortcut with a command similar to this in the start menu
should do it:
: at 18:00 "shutdown /Y"
(without the leading colon, of course)
There are lots of possibilities:
: at 17:00 /every:friday "net send computername Shutdown in 15 mins!"
: at 17:15 /every:friday "shutdown \\computername /t:60 /Y"
: at \\computername 17:30 "shutdown /t:90 /Y"
Try "at /?" and "shutdown /?" from a command prompt.
--
Luc VdV (MCP, MVP)