@echo off git pull set fileName=config.ini if not exist %fileName% ( echo file : %fileName% not exist goto end ) for /f %%i in ('type %fileName%') do ( set first=%%i break ) rd /s /Q %first% .\nuget.exe init .\packages %first% -Expand echo "finish" :end pause