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 lt1transamgt
by kevin brown
by lt1transamgt
by lt1transamgt
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending