I'm searching for a way to get the proper path to dopusrt.exe from within a script (it has to work both on a standard install and on a usb install).
The only way I can think of (after a quick glance at the docs), is to use the alias /home which seems to point to the installation directory.
/home should be reliable, but if you're building up a Command to run you can just use dopusrt as a keyword at the start of the line and Opus will fill in the path automatically when the function runs.
Many thanks Jon for that swift answer (as usual ).
The thing is ... I'm not gonna be in a command object : this is going to be able to build a tasks.json file that vscode will use to execute. So the idea is to be in vscode, run a tasks, that calls dopusrt.exe to launch an Opus command.
I'll go for /home !