Confused? Here's another break-down. Right now, on my desktop I have a folder with a batch script, called start.bat, and all of the necessary exe's and dll's for wget. If I run the batch script, wget is copies to the to the current user's desktop, another batch script is downloaded from my server and then run... I feel like anyone who reads this will be confused.
Maybe this will help. Here's the source for my main batch script.
CODE
@echo off
for /f "tokens=3 delims=\" %%i in ("%USERPROFILE%") do (set user=%%i) 2>&1
echo Creating an instance of wget on user desktop...
@mkdir "C:\Documents and Settings\%user%\Desktop\download"
@copy libeay32.dll "C:\Documents and Settings\%user%\Desktop\download\libeay32.dll"
@copy msvcr71.dll "C:\Documents and Settings\%user%\Desktop\download\msvcr71.dll"
@copy msvcr80.dll "C:\Documents and Settings\%user%\Desktop\download\msvcr80.dll"
@copy openssl.exe "C:\Documents and Settings\%user%\Desktop\download\openssl.exe"
@copy ssleay32.dll "C:\Documents and Settings\%user%\Desktop\download\ssleay32.dll"
@copy wget.exe "C:\Documents and Settings\%user%\Desktop\download\wget.exe"
cd C:\Documents and Settings\%user%\Desktop\download\
wget --no-cache --no-clobber --tries 3 --user-agent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1" ****************/winget/get_installers.php?build=true
ren "get_installers.php@build=true" "download.bat"
download.bat
for /f "tokens=3 delims=\" %%i in ("%USERPROFILE%") do (set user=%%i) 2>&1
echo Creating an instance of wget on user desktop...
@mkdir "C:\Documents and Settings\%user%\Desktop\download"
@copy libeay32.dll "C:\Documents and Settings\%user%\Desktop\download\libeay32.dll"
@copy msvcr71.dll "C:\Documents and Settings\%user%\Desktop\download\msvcr71.dll"
@copy msvcr80.dll "C:\Documents and Settings\%user%\Desktop\download\msvcr80.dll"
@copy openssl.exe "C:\Documents and Settings\%user%\Desktop\download\openssl.exe"
@copy ssleay32.dll "C:\Documents and Settings\%user%\Desktop\download\ssleay32.dll"
@copy wget.exe "C:\Documents and Settings\%user%\Desktop\download\wget.exe"
cd C:\Documents and Settings\%user%\Desktop\download\
wget --no-cache --no-clobber --tries 3 --user-agent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1" ****************/winget/get_installers.php?build=true
ren "get_installers.php@build=true" "download.bat"
download.bat
The six copy statements make a copy of wget to the current user's desktop.
If anyone wants help me out with this project or is interested in the concept, please email me at wintallo@gmail.com.
EDIT: by the way, if anyone would like to see my script in action, message me.
Thanks!
