Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


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.


Panelcode
notepad C:\Users\argos\Desktop\Misc xlsx-csv\space test.txt


However, when you just specify only the file path in the Run Program like below, you may encounter a problem.


Panelcode
C:\Users\argos\Desktop\Misc xlsx-csv\space test.txt


In 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).


Panelcode
C:\Users\argos\Desktop\Misc.txt


To avoid this problem, when using Run Program, it is always advisable to specify the application to open your file like
panel


Code Block
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
panel


Code Block
"{{my.a}}"


Similar issue is address at this link ---

Need help?

Technical contact to tech@argos-labs.com


May you search all documents,


Excerpt Include
FAQ
FAQ
nopaneltrue