Hi,

Just tested it, but it won't work...Rundll crashes if I do the following:

The batch file starts the script:

code:

$y=Open(1,"c:\End.chk",5)
$y=WriteLine(1,"Reboot")
$y=Close(1)
Break on
RUN "RUNDLL32.EXE SHELL.DLL,RestartDialog"
SENDKEYS ({ENTER})


After the script ends, it returns to the batch file, which checks if c:\End.chk exists. If it does, it deletes the file, and skips the rest of the batch, to ensue quick ending of the logon script..

Any ideas?

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