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&#39; cue that you want a remote file. <br>
<br>Python will convert forward slashes (&quot;/&quot;) into the backslashes (&quot;\&quot;) which windows requires, so you can do it three different ways.&nbsp; You can:<br><br>1) use slashes, and let python convert:<br>&gt;&gt;&gt; f=open(&quot;//remote_machine/folder1/file1.doc&quot;, &quot;r&quot;)<br>
<br>2) use backslash escapes doubled, so you type four to get two:<br>&gt;&gt;&gt; f=open(&quot;\\\\remote_machine\\folder1\\file1.doc&quot;, &quot;r&quot;)<br><br>3) use a python &quot;raw&quot; string which eliminates backslash escapes entirely so that you can type the string as windows will see it (note the letter &quot;r&quot; before first quote):<br>
&gt;&gt;&gt; f=open( r&quot;\\remote_machine\folder1\file1.doc&quot;, &quot;r&quot;)<br>--<br>Vernon Cole<br><br><div class="gmail_quote">On Sun, Feb 22, 2009 at 11:43 PM, Gerdus van Zyl <span dir="ltr">&lt;<a href="mailto:gerdusvanzyl@gmail.com">gerdusvanzyl@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Try using the normal file access functions, eg: open(&quot;file&quot;,&quot;r&quot;), etc.<br>

<br>
~G<br>
<div><div></div><div class="Wj3C7c"><br>
On Mon, Feb 23, 2009 at 6:14 AM, venu madhav &lt;<a href="mailto:venutaurus539@gmail.com">venutaurus539@gmail.com</a>&gt; wrote:<br>
&gt; Hello all, I am writing an application where I need to open a shared file on<br>
&gt; a remote machine using python script. I tried using the following function:<br>
&gt; f = urllib.open(&quot;\\remote_machine\\folder1\\file1.doc&quot;) I also tried using<br>
&gt; class urllib.FancyURLopener(...) but didn&#39;t work. Can some one help me in<br>
&gt; this regard. Thank you in advance, Venu<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; python-win32 mailing list<br>
&gt; <a href="mailto:python-win32@python.org">python-win32@python.org</a><br>
&gt; <a href="http://mail.python.org/mailman/listinfo/python-win32" target="_blank">http://mail.python.org/mailman/listinfo/python-win32</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
python-win32 mailing list<br>
<a href="mailto:python-win32@python.org">python-win32@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-win32" target="_blank">http://mail.python.org/mailman/listinfo/python-win32</a><br>
</blockquote></div><br>