Set /P XURL=Enter URL^> :do .... call wget with correct parameters....XURL variable holds the URL to fetch Set /P XURL=Enter URL[Hit ENTER to terminate]^> if %XURL%=="" goto end goto do :end echo Done.