

Designed to launch a PowerShell command prompt, Windows Terminal offers a few enhancements over the traditional command prompt.

Windows 11 comes with a command line tool dubbed Windows Terminal. Image: Julia Tim/Adobe Stock Must-read Windows coverageĭefend your network with Microsoft outside-in security services Windows Terminal offers some improvements over the standard command prompt window. Note that Powershell does have the ability to create aliases too, but they don't cross over to the command prompt, so they would only work on Powershell.How to use Windows Terminal in Windows 11 You could now type deply anywhere in a windows terminal or powershell session. In my example here, I called the alias deploy and kept dep.exe the same. If you really want dep.cmd and dep.exe to exist side-by-side, then you will have to type dep.cmd if you are in the same folder for it to work, but can use dep without the. cmd will call dep.exe instead without parameters. cmd file, if you were in the folder where dep.exe is located, typing dep without. cmd file cannot have the same extension as the executable you wish to run. Script content: echo Starting deploy.php. If you place the following script in your C:\Windows folder (this folder is by default in your PATH environment, so it should work, you can call it from anywhere. If you then place the batch file in a location that is inside your PATH environmental variable, you can type your command anywhere and it will execute your batchfile, and thus your series of commands. You can create a batch file that executes the command and name it what you wish the alias to be.
