Apr-18-2019, 07:37 AM
Hi Everyone
I am trying to change to a directory on a remote server (Both Windows OS, same LAN)
I am doing this but it does not work
directory5 = os.chdir("\\servername\c$\DIR1\DIR2") # Change working directory
I get this error
File "C:\Python\TEST.py", line 3, in <module>
directory5 = open("\\servername\c$\DIR1\DIR2")
FileNotFoundError: [Errno 2] No such file or directory: '\\servername\c$\DIR1\DIR2'
I have looked at using an extra \ and r but can get this to work, please can anyone help?
TIA
I am trying to change to a directory on a remote server (Both Windows OS, same LAN)
I am doing this but it does not work
directory5 = os.chdir("\\servername\c$\DIR1\DIR2") # Change working directory
I get this error
File "C:\Python\TEST.py", line 3, in <module>
directory5 = open("\\servername\c$\DIR1\DIR2")
FileNotFoundError: [Errno 2] No such file or directory: '\\servername\c$\DIR1\DIR2'
I have looked at using an extra \ and r but can get this to work, please can anyone help?
TIA