System calls over network
Gabriel Leblanc
gabriel.leblanc at a2m.com
Tue Jan 13 12:50:29 EST 2004
Hello,
I am wondering if there's an easy way to do a system call to a file
that resides on the network. Say for example I would like to call the
batch file which is located at
\\ComputerName\file.bat
I tried :
>>> import os
>>> os.popen("\\ComputerName\file.bat")
<open file '\ComputerName\file.bat', mode 'r' at 0x007E7760>
>>> os.popen("\\\\ComputerName\\file.bat")
<open file '\\ComputerName\install.bat', mode 'r' at 0x007E7B20>
Of course, I replaced ComputerName and file.bat with the correct
paths.
Any idea ?
Thanks !
More information about the Python-list
mailing list