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 ("/"

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

2009-02-23 Thread Dahlstrom, Roger
It would be much easier for us to help if we could see your code, and the error you receive when you try to run it. From: [email protected] [mailto:[email protected]] On Behalf Of ve

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 so

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 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 function: > f = urllib.