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 |
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 ~
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1)Place PortableApps.bat to youDrive:youPath\PortableApps
2)Run it
3)Create folder %PortableApps%\Пуск
4)Create links in %PortableApps%\Пуск or it subdirs to portable applications in %PortableApps% as .lnk files (bar.lnk)
5)Replace in Path of bar.lnk from youDrive:youPath\PortableApps\foo\bar.exe to %PortableApps%\foo\bar.exe
6)Replace in WorkingDirectory of bar.lnk from youDrive:youPath\PortableApps\foo to %PortableApps%\foo
7)Create new toolbars on windows taskbar as %PortableApps%\Пуск (look https://www.guidingtech.com/3894/create-custom-toolbar-windows)(смотри https://www.youtube.com/watch?v=M5jlDVLnm2g)