Thema: Delphi ShellExecute

Einzelnen Beitrag anzeigen

hathor
(Gast)

n/a Beiträge
 
#4

Re: ShellExecute

  Alt 4. Okt 2007, 11:23
Nimm doch gleich shutdown.exe, was bei WINDOWS dabei ist.
Mit shutdown.exe /? kannst Du Dir die Parameter anzeigen lassen.

z.B.:
Delphi-Quellcode:
If FileExists('shutdown.exe') then
    WinExec('shutdown.exe -i -s -f -t 10 -c "SHUTDOWN in 10 Seconds"', SW_SHOW);
  Mit Zitat antworten Zitat