You might also want to try it the only "right" way (by using Delphi itself, that is ;-) by using the WTSShutdownSystem-API command...
(Repair this link, cause it will be broken up by the mailinglist I guess:) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/te rmserv/WTSShutdownSystem.asp Greetz, Peter. > -----Original Message----- > From: Glenn B. Lawler [mailto:[EMAIL PROTECTED] > Sent: Monday, April 04, 2005 11:34 PM > To: '[email protected]' > Subject: RE: [delphi-en] Re: Restart a remote computer > > > > > Eeeerm... I think that the aim is to restart computer A from > computer B. If > > so, an app will be needed running on A and waiting for > connections (from B). > > Upon connection, it will execute SHUTDOWN or ExitWindowsEx, or > whatever. :) > > > > So, there will be 2 apps needed: a "server" (listening, > restarting) and client > > (making the "deadly" connection). > > Mike, > > You are right about the SHUTDOWN command included with the > workstation versions of Windows; however, the same command is available > on server versions of Windows with the following usage: ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

