I am trying to write a Python script that can move and copy files on a remote Linux server. However, I can\'t assume that everyone running the script (on Windows) will have mapp
Try using the short name instead of the fully qualified name. In you example that would be \\name-of-machine\var\SomeFile.txt
.
Edit:
Okay, now I feel like a dummy -- hopefully you'll feel like one with me! ;)
The machine name is name-of-machine.site.company.com
, and the folder and file name is \var\SomeFile.txt
-- what is the share name? In other words, your path should be something like:
\\name-of-machine.site.company.com\share_name\var\SomeFile.txt