Running command with parameters from script does not work.
Posted: 05 May 2020 11:36
Hi
I wanted to create a simple scripts that run a command line tool from within XYplorer with some parameters, but I can't get it to work. This is the command I am running
::run """C:\Users\exampleuser\AppData\Local\Programs\Python\Python38\Scripts\bpsproxy.exe"" -s 50 100 -p nvenc ""<curpath>""";
Essentially I want to run this program that creates proxies for video editing with some parameters and a file path parameter at the end. However running this from the address bar, just opens and closes cmd with no additional feedback.
The goal is to have a shortcut in a catalog so that I can just browse to a folder and click it to have this command line program generate proxies for all video files in the folder.
This is the command from the manual I am trying to replicate:
run """C:\Program Files (x86)\WinMerge\WinMergeU.exe"" /e /r ""<get path 1>"" ""<get path 2>""";
By swapping out the filepath to the tool, the parameters and the paths. I thought it would work. Running the command from cmd or through Run works fine.
Thanks for any help!
/Erik
I wanted to create a simple scripts that run a command line tool from within XYplorer with some parameters, but I can't get it to work. This is the command I am running
::run """C:\Users\exampleuser\AppData\Local\Programs\Python\Python38\Scripts\bpsproxy.exe"" -s 50 100 -p nvenc ""<curpath>""";
Essentially I want to run this program that creates proxies for video editing with some parameters and a file path parameter at the end. However running this from the address bar, just opens and closes cmd with no additional feedback.
The goal is to have a shortcut in a catalog so that I can just browse to a folder and click it to have this command line program generate proxies for all video files in the folder.
This is the command from the manual I am trying to replicate:
run """C:\Program Files (x86)\WinMerge\WinMergeU.exe"" /e /r ""<get path 1>"" ""<get path 2>""";
By swapping out the filepath to the tool, the parameters and the paths. I thought it would work. Running the command from cmd or through Run works fine.
Thanks for any help!
/Erik