Execute batch script on remote computer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • py

    #1

    Execute batch script on remote computer

    I am trying to execute a batch script on a remote computer.

    The batch script looks like:

    @echo off
    start c:\python24\pyt hon.exe c:\a_script.py


    Here's the setup:
    Computer A (my computer), Computer B (the remote computer).

    So I map "W:" to Computer B and then copy the batch script to Computer
    B. Then from within Python on Computer A I run:
    import subprocess
    subprocess.Pope n("W:\\foo.bat" )

    However, when it runs it says it can't find c:\a_script.py. It seems
    to be trying to look
    at Computer A, not Computer B. How can I do this?

    Thanks

Working...