Created
May 10, 2019 13:34
-
-
Save LiamKarlMitchell/967f862bb40d27d117f136a23f35c364 to your computer and use it in GitHub Desktop.
Set location to current directory set path enviroment variable and start a shell Windows PowerShell if available otherwise cmd Command Prompt is used.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cd /D "%~dp0" | |
title Your - Shell | |
set PATH="%~dp0Your\bin";%PATH% | |
REM Start powershell if available otherwise use cmd. | |
for %%i in (powershell.exe) do if "%%~$path:i"=="" (cmd) else start powershell -NoLogo -NoExit -Command "& { $env:Path = \"%PATH%\" }" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment