Re: Running Windows commands in Delphi

Posted by Jenny

In Reply to Running Windows commands posted by Leigh Hill

: I want to run the following command to log a user off a Terminal Services session once they have finished running my app. "%windir%\system32\cmd.exe /clogoff"
: Any ideas how I do this?

You could try ShellExecute. I saw lots of related info in this forum and in other articles on this site, try the Search function in the navigation :)

Good luck!

Related Articles and Replies