Trying to open a file using shell :
os.system("G:\Folder\2. Cntry\ACCD.accdb")
throw the following error :
'G:\Folder.' is not recognized as an internal or external command,
operable program or batch file.
However when I paste "G:\Folder\2. Cntry\ACCD.accdb"
into cmd prompt, it does open the file.
It seems that \2
is read as a .
but using :
os.system(r"G:\Folder\2. Cntry\ACCD.accdb")
returns :
'G:\Folder\2.' is not recognized as an internal or external command,
operable program or batch file.
How can I do ?