Last active
February 28, 2018 06:09
-
-
Save abakum/ffd24a8c4da2fa627847866cae854ffa to your computer and use it in GitHub Desktop.
.lnk for PortableApps
This file contains 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 set variable %~n0 of global environment as path to this script without slash on the end | |
cd /d %~dp0 | |
setx %~n0 %cd% |
This file contains 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
cd /d %~dp0 | |
call :wd %cd% | |
goto end | |
:wd | |
echo set variable %~n1 of global environment as path to this script without slash on the end | |
setx %~n1 %cd% | |
:end |
This file contains 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
:Place this script in %USERPROFILE%\SendTo | |
cd /d %1 | |
call :wd %cd% | |
goto end | |
:wd | |
echo set variable %~n1 of global environment as path to folder without slash on the end | |
setx %~n1 %cd% | |
:end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1)Copy PortableApps.bat to c:\msys32
2)Rename it as MSYS2.bat
3)Run it
4)Use in total/double Commander as
cd %MSYS2%/home/%USERNAME%
to go to ~