Page 1 of 1

How does runret() quote text that contains spaces?

Posted: 08 Aug 2023 23:06
by Norn
Is there a way to add quotes to "For Test"? I tried several combinations but none worked.

Code: Select all

text runret("cmd /c ""<xyscripts>\EV FOR XY\es.exe"" For Test");
If not, I'll keep using the run command.

Code: Select all

 run "<xyscripts>\EV FOR XY\es.exe ""For Test"" -export-txt ""D:\Test.txt""",, 2, 0;
 text readfile("D:\Test.txt");

Re: How does runret() quote text that contains spaces?

Posted: 09 Aug 2023 00:20
by highend
The easiest way is to do it with lax()

Code: Select all

text runret(lax("cmd" /c ""<xyscripts>\EV FOR XY\es.exe" "For Test""));