Created
May 9, 2018 06:12
-
-
Save muink/40db93e26119fd244cf67db31b31e63f to your computer and use it in GitHub Desktop.
Put me into the same directory of Gpg4win mkportable.exe
This file contains hidden or 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 off | |
:: Gpg4win mkportable | |
:: Put me into the same directory of Gpg4win mkportable.exe | |
:: Author: muink | |
:start | |
cls | |
set /p "target=Enter the target path: " | |
if exist "%target%" ( | |
dir /ad "%target%">nul 2>nul&&pushd "%target%"||( | |
echo.Path not folder.. | |
ping -n 3 127.0.0.1>nul | |
goto start | |
) | |
) else ( | |
echo.Path not exist.. | |
ping -n 3 127.0.0.1>nul | |
goto start | |
) | |
md "bin">nul 2>nul | |
md "share\locale\vi\LC_MESSAGES">nul 2>nul | |
md "share\locale\en@quot\LC_MESSAGES">nul 2>nul | |
md "share\locale\en@boldquot\LC_MESSAGES">nul 2>nul | |
md "share\locale\id\LC_MESSAGES">nul 2>nul | |
for /f "delims=" %%i in ('dir /ad /b "%~dp0..\share\locale"') do md "share\locale\%%i\LC_MESSAGES">nul 2>nul | |
"%~dp0mkportable.exe" --full --force "%cd%" | |
echo.Complete! | |
ping -n 3 127.0.0.1>nul | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment