Custom Event Action - Launch Windows Terminal

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
dufferzafar
Posts: 1
Joined: 11 Mar 2021 20:35

Custom Event Action - Launch Windows Terminal

Post 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?

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Custom Event Action - Launch Windows Terminal

Post by highend »

Code: Select all

run """%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe"" nt -d ""<curpath>""";
One of my scripts helped you out? Please donate via Paypal

Post Reply