FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Logoff in Terminal Server
Posts: 159
Joined: Wed Mar 28, 2007 01:19 PM
Logoff in Terminal Server
Posted: Wed Nov 17, 2010 10:41 AM

Hi to all!
I used to turn off the computer at end of the program with:
WinExec("shutdown -s -t 5 -c 'Shutdown Message'")
Now we are using Terminal Sever and the above command does nothing on the terminals.
There is some API to logoff the terminal?
TIA .and. regards, Euclides

Posts: 694
Joined: Fri Oct 07, 2005 06:58 AM
Re: Logoff in Terminal Server
Posted: Wed Nov 17, 2010 11:16 AM
Euclides,

Prueba este comando:
Code (fw): Select all Collapse
%windir%\system32\TSShutdn.exe
Un saludo

Fernando González Diez

ALSIS Sistemas Informáticos
Posts: 159
Joined: Wed Mar 28, 2007 01:19 PM
Re: Logoff in Terminal Server
Posted: Wed Nov 17, 2010 02:13 PM

Hi Fernando,
TSSHUTDN.EXE shuts down the SERVER.
but following your information I found in %windir%\system32 the TSDISCON.EXE who disconnects the terminal.
Thanks .and. regards, Euclides

Continue the discussion