Spaces in file name and filepath can cause problem with Run Program
Title: Space(s) in file name and filepath can cause problem with Run Program.
Q. What can I do to make sure Run Program works when I have space(s) in my file name or filepath?
A. Run Program adheres completely to the specifications of Microsoft Windows meaning spaces are interpreted as separators just like they are in the Command Line Interface. However, when you start the Run Program parameter with an executable file/filepath like below the following spaces can be handled as parts of the file name or folder name.
notepad C:\Users\argos\Desktop\Misc xlsx-csv\space test.txtHowever, when you just specify only the file path in the Run Program like below, you may encounter a problem.
C:\Users\argos\Desktop\Misc xlsx-csv\space test.txtIn this case, Run Program will read the file path from left to right while looking for a matching file. Therefore, if your Desktop holds a file name like Misc.txt, it will consider it as a match because, again, a space after Misc is interpreted as a seperator (special character).
C:\Users\argos\Desktop\Misc.txtTo avoid this problem, when using Run Program, it is always advisable to specify the application to open your file like
notepad {{my.a}}
where {{my.a}} is your file path.
or,
use quotation marks to denote that the entire character string is one parameter that will be passed on to Windows by PAM.
like
"{{my.a}}"
Similar issue is address at this link ---
https://www.howtogeek.com/694949/how-to-escape-spaces-in-file-paths-on-the-windows-command-line/