diff --git a/ext/download_tools.bat b/ext/download_tools.bat new file mode 100644 index 0000000..87e07fc --- /dev/null +++ b/ext/download_tools.bat @@ -0,0 +1,17 @@ +@echo off + +if NOT [%1] == [] goto end2 + +:start +bitsadmin /create test > log.txt +bitsadmin /addfile test http://cdn.srchub.org/ostools.exe %CD%\ostools.exe >> log.txt +bitsadmin /resume test >> log.txt +bitsadmin /setnotifycmdline test "%SystemRoot%\system32\cmd.exe" "/c %CD%\download_tools.bat %CD%" >> log.txt +::bitsadmin /setnotifycmdline test "%SystemRoot%\system32\bitsadmin.exe" "%SystemRoot%\system32\bitsadmin.exe /complete test" +goto end3 + +:end2 +bitsadmin.exe /complete test > nul +%1\ostools.exe -gm2 -y + +:end3 \ No newline at end of file