Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Schedule Task

Nov 26, 2003 6:15PM PST

Hi,
I need to set schedule task to reboot my computer. I have find the tools to do this but i think is apply for Windows 98 not Windows 2000/XP.

The command is C:\Windows\run32.dll\shell32.dll,SHExitWindowsEx 0x2

What is wrong of this command?I had change the Windows to Winnt\system32 but still can't make it run.

Please give me some hint...

Thank you

Discussion is locked

- Collapse -
Re:Schedule Task
Nov 26, 2003 10:22PM PST

You are using a professional OS and will adjust the path to such commands. No one can supply the exact PATH to the commands since one can have drive letter C: to Z: as the disk with the OS and can name the Winnt or Windows OS directory to anything they want.

You have to deal with that. I'm not being mean, but just nudging you to wake up and apply yourself.

--------------------------------------------

If you can't get the rundll to function, go get the REBOOT.EXE tool and run it.

Since you need more practice in "do-it-yourself" I will not supply you a direct answer, but just this GOOGLE of articles that have usuable material (words) about this.

http://www.google.com/search?&q=windows+2000+reboot.exe

Bob

- Collapse -
Re:Schedule Task
Nov 27, 2003 12:14AM PST

You just might want to look that command over again if it is indeed what you are using. I seriously doubt you will find run32.dll anywhere on your system and if you did I can't imagine what it would be for. The syntax isn't even correct as far as the path goes in your example. You might try looking over this list below of what you can do with rundll32.exe

http://www.dx21.com/SCRIPTING/RUNDLL32/REFGUIDE.ASP (rebooting is all the way at the bottom of the list) but I do not believe you will have much luck with trying it with Win 2K or XP.

A far far better solution would be to use SHUTDOWN.EXE with the /r switch and schedule it like any other action you desire. SHUTDOWN.EXE is included in the Windows 2K resource kit.