System calls over network

Moosebumps crap at crud.com
Tue Jan 13 13:54:27 EST 2004


Windows "at" command, or soon.exe which you can download from the Microsoft
website.  do a google search on those.  I had the exact same question.

MB

"Gabriel Leblanc" <gabriel.leblanc at a2m.com> wrote in message
news:ed58f15a.0401130950.237a0ea1 at posting.google.com...
> 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