Discussion Locked

Shut Down Windows 98 from another comp

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
A while back I heard it was possible to create a shortut on the desktop to shut down windows. It was some type of run linme command. Does anyone know how to create this and would it work if it was placed in a shared folder and then run from another computer on the network?

5 replies

by dlw6

Yes you can and here's how...

1. From MS Knowledge Base #Q234216:
You can use the following command in a batch file to restart Windows 98 automatically:

rundll32.exe shell32.dll,SHExitWindowsEx n

where n is one, or a combination of, the following numbers:

0 - LOGOFF
1 - SHUTDOWN
2 - REBOOT
4 - FORCE
8 - POWEROFF

The above options can be combined into one value to achieve different results. The numbers are cumulative (binary basis), for example:

rundll32.exe shell32.dll,SHExitWindowsEx 9

would initiate a shutdown and power off, but it would not force the shutdown and thus the user could either change his mind or save his data first.

2. Programs (EXE and batch files) which are invoked from a network folder (mapped drive, shared folder, etc) run on the machine on which they are invoked. In other words, it doesn't matter where the program is, the machine that runs the program (rather than the one that stores it) will do action, in this case shut down.

So, all you have to do is write the batch file as above, share it, and get the shortcut to your people (e-mail or whatever means you trust).

Enjoy,
Don

by kevin brown

You could also use shutdown.exe for the Nt Server resource kit. run "shutdown \\computer" from a command prompt

This discussion is closed to new replies.