>>>I want to know how to shutdown the computer in the Window Environment by using a DOS batch file ?
>>
>>Does it
have to be from a batch file? You can do it from within VFP. In addition to Nadya's suggestion, there's a Microsoft KB article on how to do it:
click here.
>
>Mike,
>
>Do you know, is it possible from VB Script? It would satisfy his request, I believe.
No, it isn't, AFAIK. Further, you can't call the API from the WSH.
George
Ubi caritas et amor, deus ibi est