I still believe something is going wrong with the interpretation of special characters. For example: you can insert a "vertical tab" by asigning the literal: "\v".
See this:
In the second example ("C:\Program Files (x86)\2BrightSparks\SyncBackFree\SyncBackFree.exe") you can see the "\2" is replaced by ... I don't know. It disappeared. Apparently it is seen as an octal code.
See String literals to see how backslashes are handled.
Could it be something like this is happening when assigning literals to strings?
I believe it is allowed in Python for Windows to use the forward slash instead of the backslash in folder paths. Perhaps you can try that.
See this:
>>> print("C:\\Program Files\\VideoLAN\\VLC\\vlc.exe") C:\Program Files\VideoLAN\VLC\vlc.exe >>> print("C:\Program Files\VideoLAN\VLC\vlc.exe") C:\Program Files\VideoLAN\VLC lc.exe >>> print("C:\\Program Files (x86)\\2BrightSparks\\SyncBackFree\\SyncBackFree.exe") C:\Program Files (x86)\2BrightSparks\SyncBackFree\SyncBackFree.exe >>> print("C:\Program Files (x86)\2BrightSparks\SyncBackFree\SyncBackFree.exe") C:\Program Files (x86)BrightSparks\SyncBackFree\SyncBackFree.exeIn the first example ("C:\Program Files\VideoLAN\VLC\vlc.exe") you see the "\v" is replaced by a "vertical tab".
In the second example ("C:\Program Files (x86)\2BrightSparks\SyncBackFree\SyncBackFree.exe") you can see the "\2" is replaced by ... I don't know. It disappeared. Apparently it is seen as an octal code.
See String literals to see how backslashes are handled.
Could it be something like this is happening when assigning literals to strings?
I believe it is allowed in Python for Windows to use the forward slash instead of the backslash in folder paths. Perhaps you can try that.