Execute terminal command from catalogue item
Execute terminal command from catalogue item
As title, how could I achieve this?
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 24H2 Home x64 - XY: Current x32 beta - Office 2024 32-bit - Display: 1920x1080 @ 125%)
(OS: W11 24H2 Home x64 - XY: Current x32 beta - Office 2024 32-bit - Display: 1920x1080 @ 125%)
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>"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?
Re: Execute terminal command from catalogue item
Which command are you executing exactly?
One of my scripts helped you out? Please donate via Paypal
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