Skip to content

Instantly share code, notes, and snippets.

@mperry
Created July 29, 2015 03:49
Show Gist options
  • Save mperry/532aea96c10e932e255a to your computer and use it in GitHub Desktop.
Save mperry/532aea96c10e932e255a to your computer and use it in GitHub Desktop.
@echo off
set WRITE=%1
set READ=%2
:main
call :myset %WRITE% %%READ%%
goto :end
:myset
for /F "usebackq tokens=*" %%i in (`echo %%%2%%`) do set %1=%%i&& set PATH=%%i\bin;%PATH%
goto :eof
:end
set WRITE=
set READ=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment