Just tried it, using the following code:

code:

Cls
At (3,3) "Your computer will shut down automatically"
Sleep 3
Cls
Run "Rundll32.exe SHELL.DLL,RestartDialog"
SENDKEYS ({ENTER})
Exit

On Win95 OSR2.5 I get an illegal operation if Rundll is called (even if I do it using Start-Run), and on the Win98 1st edition I get a window telling me I have to close this program first, and then it gives me a choice to have windows do it, or cancel the operation and continue working in Windows...

_________________________
Regards, Jeroen. There are two ways to write error-free programs. Only the third one works.