[python-win32] Querying the VNC Service fails sometimes

Michel Claveau mc at mclaveau.com
Tue Jun 24 07:04:02 CEST 2008


Hi! 

Can you try to wrap command-line SC?

Example of command-line : 
    sc query winvnc

Example of wrap:
    def clwrap(commande, cdir='.'):
        import os
        if cdir!='.':    os.chdir(cdir)
        a = os.popen(commande)
        return a.read()

    print clwrap('sc query winsvc')



@-salutations

Michel Claveau



More information about the python-win32 mailing list