[python-win32] Will wmi can a command on remore host and get the return code
Mike Driscoll
mdriscoll at co.marshall.ia.us
Thu May 15 15:05:36 CEST 2008
siddhartha veedaluru wrote:
> Hi,
>
> i'm tring to execute a exe that is placed in the mapped network drive
> on remote machine
> it seems it is not getting recognised.
>
> How can i run the exe on the mapped network drive
>
> Thanks,
> Siddhartha
I would use the subprocess module.
<code>
import subprocess
# replace C:\ with map drive letter or use UNC path
subprocess.Popen(r'C:\path\to\exe')
</code>
Mike
More information about the python-win32
mailing list