A child of CmdUtils.
Allows users to run the Windows Terminal application regardless of whether shell execution is available.
> wt [params]
Example #1: > wt
The above example will open the Windows Terminal application.
Example #2: > wt "Example.bat"
TThe above example will open the Windows Terminal application, and invoke 'Example.bat' as a command.
Get the latest release from the Releases tab, and extract the Wt.exe
executable to a known location.
This location must then be added to the PATH environment variable.
- Clone this repository using your preferred method (
git clone
, GitHub Desktop, GitKraken, and so on...) - Open the
CmdWt.sln
file with Visual Studio 2022 (other versions should work, but the project was made with this version.), ensuring the '.NET desktop development' module is already installed. - Build the project using the
Build/Publish Selection
dialog, using either theFolderProfile
preset. - Rename the resultant
CmdWt.exe
executable toWt.exe
- Copy the executable to a known location. This location must then be added to the PATH environment variable.
This step only applies for Windows systems. There are two main methods to add a program to your PATH. Method #1 involves copying the executable to the System32 directory, or some other directory already assigned to the PATH variable. Method #2 involves choosing your own location and adding it to the PATH variable.
- Copy the
Wt.exe
executable to%WINDIR%\system32\Wt.exe
(becomes C:\Windows\system32\Wt.exe on a default installation of Windows.)
- Copy the
Wt.exe
executable to a location of your choice (for this example, we will useE:\Programs\_Terminal\Wt.exe
) - Open the 'Edit Environment Variables' dialog.
a. Method #1: Search for 'Edit environment variables for your account'.
b. Method #2: Open 'System Properties' (either via search or
sysdm.cpl
in the[โ Win]
+[R]
run dialog), click on the 'Advanced' tab, and click on the 'Environment Variables' button. c. Method #3: Executerundll32.exe sysdm.cpl,EditEnvironmentVariables
in the[โ Win]
+[R]
run dialog. - In the
User variables for (username)
section, select thePATH
variable and click theEdit...
button. - Click the
New
button and paste the folder containing the executable (i.e.E:\Programs\_Terminal\Wt.exe
) - Press the carriage return (
[Enter]
) key to finalise the new variable, then pressOK
andOK
again. - Try and run a test command from the command prompt. If the executable is not found, you may have to restart the command prompt first, and if that doesn't work, try either signing out and in (restarting
explorer.exe
), or restarting the computer then try the command again.