How does runret() quote text that contains spaces?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Norn
Posts: 504
Joined: 24 Oct 2021 16:10

How does runret() quote text that contains spaces?

Post 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");
Windows 11 24H2 @100% 2560x1440

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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

Post 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""));
One of my scripts helped you out? Please donate via Paypal

Post Reply