Re: [python-win32] Help required in opening a remote file in python.

2009-02-23 Thread Dahlstrom, Roger
Of venu madhav Sent: Sunday, February 22, 2009 11:15 PM To: Python-Win32 List Subject: [python-win32] Help required in opening a remote file in python. Hello all, I am writing an application where I need to open a shared file on a remote machine using python script. I tried using the following

Re: [python-win32] Help required in opening a remote file in python.

2009-02-23 Thread Vernon Cole
Yes, if you are normal Windows shared files, you should be using normal file access functions. But your file name is incorrectly formatted. The name of the remote computer must have TWO leading backslashes, which is Windows' cue that you want a remote file. Python will convert forward slashes (/)

[python-win32] Help required in opening a remote file in python.

2009-02-22 Thread venu madhav
Hello all, I am writing an application where I need to open a shared file on a remote machine using python script. I tried using the following function: f = urllib.open(\\remote_machine\\folder1\\file1.doc) I also tried using class urllib.FancyURLopener(...) but didn't work. Can some one help me

Re: [python-win32] Help required in opening a remote file in python.

2009-02-22 Thread Gerdus van Zyl
Try using the normal file access functions, eg: open(file,r), etc. ~G On Mon, Feb 23, 2009 at 6:14 AM, venu madhav venutaurus...@gmail.com wrote: Hello all, I am writing an application where I need to open a shared file on a remote machine using python script. I tried using the following

Re: [python-win32] Help required in opening a remote file in python. [SEC=PERSONAL]

2009-02-22 Thread Andrew MacIntyre
Hello all, I am writing an application where I need to open a shared file on a remote machine using python script. I tried using the following function: f = urllib.open(\\remote_machine\\folder1\\file1.doc) I also tried using class urllib.FancyURLopener(...) but didn't work. Can some one