Another way is programmatically:
=WinShutDown(67)

*-------------------------------------------------------------*
*- Procedure WinShutdown(pn_exittype)
*-  Exit or Exit and Restart Windows
*\-- pn_exittype:
*----  66=exit and restart
*----  67=exit for good
*-------------------------------------------------------------*
    PROCEDURE winshutdown

    LPARAMETER pn_exittype

    IF TYPE("pn_exittype") <> "N"
        pn_exittype= 66
    ENDIF

    DECLARE INTEGER ExitWindowsEx IN user32 INTEGER, INTEGER

    lnexitwindows=ExitWindowsEx(pn_exittype,0)

ENDPROC
*-------------------------------------------------------------*


Philip L. Borkholder
Systems Analyst/Programmer
Automation Plus, Inc.
(800) 253-4871 Ext: 24
Fax No.: (269) 651-9392
[EMAIL PROTECTED]



John Weller wrote:

>I am using the code provided by Vassilis to mirror the contents of a drive
>to another network drive.  I then need to shutdown the PC, similar to Nero
>when it does a backup then shuts the system down.  Any suggestions
>gratefully received.
>
>John Weller
>01380 723235
>07976 393631
>
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to