*** look in the windows helpfile *** take a look at "Command-line reference A-Z" #define WINDOWSFOLDER 0x24 oShell = CreateObject("Shell.Application") oFolder = oShell.NameSpace(WINDOWSFOLDER) lcShutDown = [Run ]+ADDBS(oFolder.Self.Path)+[system32\shutdown.exe -s -f -t 0] IF MESSAGEBOX("Do you wont really to shutdown the PC ;o)?",4+32+256,"Shutdown") = 6 EXECSCRIPT(m.lcShutDown) ENDIF