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