[python-win32] network copy

Tim Golden tim.golden at viacom-outdoor.co.uk
Mon Apr 24 12:18:42 CEST 2006


[le dahut]

| What is the best way to copy files from a windows/samba share without 
| connecting a network drive using python ?

Well, to answer your question two ways...

For general copying-a-file on windows stuff, have a look here:

http://timgolden.me.uk/python/win32_how_do_i/copy-a-file.html

To refer to a Windows / Samba share, use a UNC:

\\server\share\some\path\filename.txt

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


More information about the Python-win32 mailing list