win32com (VBScript to Python) problem
Duncan Booth
duncan at NOSPAMrcp.co.uk
Tue Nov 25 08:33:27 EST 2003
Tim Howarth <tim at worthy.demon.co.uk> wrote in
news:4700e5564c.tim at worthy.demon.co.uk:
> In message <Xns943E7EB585A78duncanrcpcouk at 127.0.0.1>
> Duncan Booth <duncan at NOSPAMrcp.co.uk> wrote:
>
>> Tim Howarth <tim at worthy.demon.co.uk> wrote in
>> news:6e24de564c.tim at worthy.demon.co.uk:
>>
>> > I want to use this to shutdown all machines in the school in which I
>> > work from a schedule on a server.
>>
>> This isn't a Python solution at all, but have you looked at PsTools
>> (http://www.sysinternals.com)?
>
> Yes, very handy tools.
>
> It's just that I'd like to do the shutting down myself - why call
> pshutdown if I can call the shut down mechanism directly.
>
>
I would say because with the pstools version you get a message on screen
telling the user that their system is going to shut down in 1 minute (or
whatever) and giving them an opportunity to save their work. You might
never need that, but it could save someone a lot of grief.
--
Duncan Booth duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?
More information about the Python-list
mailing list