PATH
You can run the following command to change the PATH or other Environment Variables: "C:\Windows\system32\rundll32.exe" sysdm.cpl,EditEnvironmentVariables
I use the following script to add portable tools such as Git, Node.js, and Python to Windows PATH.
@echo off
rem Set the directory paths for Portable Git, Node.js, and Pythonset gitdir=%~dp0PortableGit\cmdset nodedir=%~dp0PortableNodeset pythondir=%~dp0PortablePythonset pythonscripts=%~dp0PortablePython\Scripts
rem Append the directory paths to the system's PATH variableset path=%PATH%;%pythondir%;%gitdir%;%nodedir%;%pythonscripts%
rem Figure out versions for Git, Node.Js, NPM, and Python. The first one breaks apart the Git version to make it look nicer.for /f "tokens=3-6 delims=. " %%a in ('git --version') do (set gitver1=%%a&set gitver2=%%b&set gitver3=%%c)for /f "tokens=1" %%v in ('node -v') do set nodever=%%vfor /f "tokens=1" %%n in ('npm -v') do set npmver=%%nfor /f "tokens=2" %%p in ('python --version') do set pyver=%%p
echo Git Version = v%gitver1%.%gitver2%.%gitver3%echo Node Version = %nodever%echo NPM Version = v%npmver%echo Python Version = v%pyver%
git config --global user.name "semanticdata"git config --global user.email "contact@miguelpimentel.do"It lives within the tools directory inside a Portable installation of VSCode.
@echo off
rem Set the directory paths for Portable Git, Node.js, Python, and Goset gitdir=%~dp0PortableGit\cmdset nodedir=%~dp0PortableNodeset pythondir=%~dp0PortablePythonset pythonscripts=%~dp0PortablePython\Scriptsset godir=%~dp0PortableGo\bin
rem Append the directory paths to the system's PATH variableset path=%PATH%;%pythondir%;%gitdir%;%nodedir%;%pythonscripts%;%godir%
rem Figure out versions for Git, Node.Js, NPM, Python, and Gofor /f "tokens=3-6 delims=. " %%a in ('git --version') do (set gitver1=%%a&set gitver2=%%b&set gitver3=%%c)for /f "tokens=1" %%v in ('node -v') do set nodever=%%vfor /f "tokens=1" %%n in ('npm -v') do set npmver=%%nfor /f "tokens=2" %%p in ('python --version 2^>^&1') do set pyver=%%pfor /f "tokens=3 delims= " %%g in ('go version') do set gover=%%g
rem Clean up the Go version to isolate the numeric partset gover=%gover:go=%
echo Git Version = v%gitver1%.%gitver2%.%gitver3%echo Node Version = %nodever%echo NPM Version = v%npmver%echo Python Version = v%pyver%echo Go Version = %gover%
git config --global user.name "semanticdata"git config --global user.email "contact@miguelpimentel.do"