Page 1 of 1

Custom Event Action - Launch Windows Terminal

Posted: 11 Mar 2021 20:55
by dufferzafar
I'm trying to setup a Custom Event Action for "middle click on white in file list" to launch windows terminal.

I'm using the "Run script" action with the following script:

Code: Select all


run "%APPDATA%\..\Local\Microsoft\WindowsApps\wt.exe"

The above script works, so I tried modifying it to launch the terminal in the current directory:

Code: Select all


run '"%APPDATA%\..\Local\Microsoft\WindowsApps\wt.exe" nt -d <curpath>'

But it doesn't work! I'm probably making a mistake escaping the strings, but am new to XY scripting and was just trying to follow the docs.

How should I escape the run string properly? Do i need to use runq?

Re: Custom Event Action - Launch Windows Terminal

Posted: 11 Mar 2021 21:00
by highend

Code: Select all

run """%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe"" nt -d ""<curpath>""";