@echo off if not exist "%~dp0venvscriptsactivate" ( echo activate not found pause > nul goto :eof ) %comspec% /C "%~dp0venvscriptsactivate" pip freeze > requirements.txt echo requirements.txt created pause > nul