I am trying to opne a file that is located on a server using the windows cmd. What I do is basically the following thing:
import os
os.system('pushd '+ \\Server\PathToFile)
os.system('start Notepad '+ NameOfFile)
The point is that this works if I enter it by hand in the cmd. If I try to do it within python it does not work. I get this error message:
CMD.EXE was started with the path given above as current directory.
UNC-paths are not supported, therefore the windows-directory is used as
current directory.
The actual error message is in german, that's why I translated it and I'm not sure whether it's understandable or not. What actually happens is that the path where notepad is looking for the current file is C:\Windows instead of the path that I indicated.