Page 1 of 1
Execute terminal command from catalogue item
Posted: 18 Jul 2022 16:53
by Wublide
As title, how could I achieve this?
Re: Execute terminal command from catalogue item
Posted: 18 Jul 2022 17:15
by RalphM
Check help for scripting commands "run", "runq" and "runret" then use it in your catalog item.
Re: Execute terminal command from catalogue item
Posted: 18 Jul 2022 18:07
by Wublide
RalphM wrote: ↑18 Jul 2022 17:15
Check help for scripting commands "run", "runq" and "runret" then use it in your catalog item.
thank you, got the command work flawlessly throug that script commands but now how I add the script line in the catalogue as an item? already tried the location box unsuccesfully with this syntax
edit: found out the correct syntax:
Re: Execute terminal command from catalogue item
Posted: 18 Jul 2022 18:23
by Wublide
one more problem: seems like that the cmd PAUSE command is not recognized and the script terminal windows is closed after the execution. How to solve this?
Re: Execute terminal command from catalogue item
Posted: 18 Jul 2022 18:40
by highend
Which command are you executing exactly?
Re: Execute terminal command from catalogue item
Posted: 18 Jul 2022 18:51
by Wublide
highend wrote: ↑18 Jul 2022 18:40
Which command are you executing
exactly?
executing an .exe file with parameters. As now I have that working through a .bat file like this:
the PAUSE deny the prompt closing on the end of command execution but in xyplorer the PAUSE command is not working
Code: Select all
::run "myapp.exe -option -option && PAUSE"
as if xyplorer is forcing the close of terminal window
edit:
solved with this syntax
Code: Select all
run "C:\Windows\System32\cmd.exe cmd /C myapp.exe -option -option && PAUSE"