@echo off @REM change to the filepath cd %~dp0 echo change to path: %cd% if exist aerial_deploy ( echo the folder aerial_deploy is exited, removing it ... rmdir /S /Q aerial_deploy echo remove done! ) mkdir aerial_deploy echo setting the env ... tar -xzf ./aerial.tar.gz -C %cd%/aerial_deploy echo ALL DONE!