shutdown windows nt worstation or windows 95/98 
Author Message
 shutdown windows nt worstation or windows 95/98

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.

Please give me some guidance ..

Thank you



Sat, 27 Apr 2002 03:00:00 GMT  
 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 ?

Use the ExitWindowsEx API. For sample code, download the
EndWindowsSession.bas from http://www.w-s-s.de/Developer/

Quote:
>And also upon user start their PC, the application will be activated and
>show on the systray.

Put a shortcut in the Startup folder on the start menu.

Mattias

________________________________________________
Mattias "beezo" Sj?gren, MCP

http://home1.2.sbbs.se/mattias.sjogren/sw/
Please send questions/replies to the newsgroups



Sat, 27 Apr 2002 03:00:00 GMT  
 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)



Sat, 27 Apr 2002 03:00:00 GMT  
 shutdown windows nt worstation or windows 95/98
Sorry for following up to myself.

I'm not 100% certain anymore (and don't have a win95 machine to
check it out), but IIRC w9x machines can be shut down remotely,
but cannot shut down others remotely.

And BTW, shutdown.exe is in the NT4 resource kit (I forgot).

--

Luc VdV (MCP, MVP)



Sat, 27 Apr 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Application runs with Windows 95/NT, but doesn't work with Windows 98

2. API Calls in Windows NT as well as Windows 95/98

3. Windows NT Users form a Windows 95 / 98 Client

4. Troublesoft - deutsche Software für Windows 95, 98 und NT

5. windows 95/98 ok but NT file error

6. Windows 95/98/NT registry editor

7. VB5 apps windows 95/98/NT compatible?

8. Windows 95/98 and NT Stock Fonts?

9. Troublesoft - deutsche Software für Windows 95, 98 und NT

10. Rich Text on Window 95,98, 2000 and NT

11. Login authentication in Windows 95/98/NT

12. MAPI DLL cannot loaded unter windows NT 4.0 - but it works with 95/98 - VB 3.0

 

 
Powered by phpBB® Forum Software