Execute terminal command from catalogue item
-
Wublide
- Posts: 49
- Joined: 30 Jan 2018 16:57
Execute terminal command from catalogue item
As title, how could I achieve this?
-
RalphM
- Posts: 2145
- Joined: 27 Jan 2005 23:38
- Location: Cairns, Australia
Re: Execute terminal command from catalogue item
Check help for scripting commands "run", "runq" and "runret" then use it in your catalog item.
Ralph 
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
-
Wublide
- Posts: 49
- Joined: 30 Jan 2018 16:57
Re: Execute terminal command from catalogue 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
Code: Select all
run "<mycommand>"Code: Select all
::run "<mycommand>"-
Wublide
- Posts: 49
- Joined: 30 Jan 2018 16:57
Re: Execute terminal command from catalogue item
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?
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Execute terminal command from catalogue item
Which command are you executing exactly?
One of my scripts helped you out? Please donate via Paypal
-
Wublide
- Posts: 49
- Joined: 30 Jan 2018 16:57
Re: Execute terminal command from catalogue item
executing an .exe file with parameters. As now I have that working through a .bat file like this:
Code: Select all
myapp.exe -option - option
PAUSECode: Select all
::run "myapp.exe -option -option && PAUSE"edit:
solved with this syntax
Code: Select all
run "C:\Windows\System32\cmd.exe cmd /C myapp.exe -option -option && PAUSE"
XYplorer Beta Club