Giter Site home page Giter Site logo

cmdwt's Introduction

CmdWt

A child of CmdUtils.

Allows users to run the Windows Terminal application regardless of whether shell execution is available.

Usage

> 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.

Installation

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.

Manual Installation

  1. Clone this repository using your preferred method (git clone, GitHub Desktop, GitKraken, and so on...)
  2. 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.
  3. Build the project using the Build/Publish Selection dialog, using either the FolderProfile preset.
  4. Rename the resultant CmdWt.exe executable to Wt.exe
  5. Copy the executable to a known location. This location must then be added to the PATH environment variable.

Adding the program to PATH

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.

Method #1

  • Copy the Wt.exe executable to %WINDIR%\system32\Wt.exe (becomes C:\Windows\system32\Wt.exe on a default installation of Windows.)

Method #2

  1. Copy the Wt.exe executable to a location of your choice (for this example, we will use E:\Programs\_Terminal\Wt.exe)
  2. 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: Execute rundll32.exe sysdm.cpl,EditEnvironmentVariables in the [โŠž Win]+[R] run dialog.
  3. In the User variables for (username) section, select the PATH variable and click the Edit... button.
  4. Click the New button and paste the folder containing the executable (i.e. E:\Programs\_Terminal\Wt.exe)
  5. Press the carriage return ([Enter]) key to finalise the new variable, then press OK and OK again.
  6. 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.

cmdwt's People

Contributors

neonalig avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.