Skip to content

Instantly share code, notes, and snippets.

@Maximus5
Created February 7, 2014 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Maximus5/8870838 to your computer and use it in GitHub Desktop.
Save Maximus5/8870838 to your computer and use it in GitHub Desktop.
@echo off
set USERPROFILE=%~dp0
if "%USERPROFILE:~-1,1%" == "\" set USERPROFILE=%USERPROFILE:~0,-1%
set HOMEDRIVE=%~d0
set HOMEPATH=%~p0
if "%HOMEPATH:~-1,1%" == "\" set HOMEPATH=%HOMEPATH:~0,-1%
rem cd /d "%~dp0"
PowerShell %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment