most Posted February 17, 2005 Posted February 17, 2005 Hi!Does anybody know of any program which checks if your favourite programs have been updated. I want to have customized lists of programs to be checked.Like the Versions for TC...http://www.totalcmd.net/plugring/versions.html/Marcus
mdes Posted February 17, 2005 Posted February 17, 2005 Does anybody know of any program which checks if your favourite programs have been updated. I want to have customized lists of programs to be checked.Right click on a favourite; then click on Subscription Or copy your favouties to "C:\WINDOWS\Offline Web Pages".
Martin Zugec Posted February 17, 2005 Posted February 17, 2005 For this purpose I got scripts with BITSAdmin/WGET and scheduled tasks...
prathapml Posted February 17, 2005 Posted February 17, 2005 For this purpose I got scripts with BITSAdmin/WGET and scheduled tasks...<{POST_SNAPBACK}>ahem... cool! Would you please detail it to share with others...
Martin Zugec Posted February 17, 2005 Posted February 17, 2005 Ok, it is quite simple script...there R four files:Update.bat (main executable), Update.ini (Global settings), internal-Download.bat (internal file) and 2download.txt (list of what to download). Update.bat:@echo offIf "%1" EQU "" Echo You must provide parameter with update group! && Goto :EOFSet UpdateGroup=%1Title %UpdateGroup% updatingSet MainDirectory=%cd%If not exist "%MainDirectory%\Update.ini" Echo Missing Update.ini file!!! && Pause && Goto :EOFFor /f "usebackq tokens=1,2 delims==" %%i IN (`type "%MainDirectory%\Update.ini"`) DO Set %%i=%%jIf not exist "%MainDirectory%\%UpdateGroup%" mkdir "%MainDirectory%\%UpdateGroup%" cd %UpdateGroup%Echo Removing log filesIf Exist "%LogDirectory%\%UpdateGroup%\Details" rmdir /q /s "%LogDirectory%\%UpdateGroup%\Details"Echo Removing error logIf Exist "%LogDirectory%\%UpdateGroup%\error.log" del /q "%LogDirectory%\%UpdateGroup%\error.log"Echo Creating log directorymkdir "%LogDirectory%\%UpdateGroup%\Details"Echo Creating temp file for case where nothing is updatedecho. > "%MainDirectory%\%UpdateGroup%\working.txt"FOR /F "tokens=1,2,3,4 delims=; " %%i in (..\2download.txt) do if /i %%j EQU %UpdateGroup% call ..\internal-Download.bat %%i %%j %%k %%lIf exist "%MainDirectory%\%UpdateGroup%\working.txt" echo %date:~3,11%;No newer versions available >> "%LogDirectory%\%UpdateGroup%\aktualizacie.log" Internal-Download:@echo offrem %1 = Product namerem %3 = Log file namerem %4 = URL addressEcho Downloading %1wget --timestamping --output-file="%3" --server-response --proxy=%boolProxy% %4call tfind.com /e "Saved" %3set update=%errorlevel%if %update% GTR 0 ( Echo %1 updated If exist "%MainDirectory%\%UpdateGroup%\working.txt" del /q "%MainDirectory%\%UpdateGroup%\working.txt" > nul echo %date:~3,11%;%1;Success>> "%LogDirectory%\%UpdateGroup%\aktualizacie.log" move /Y %3 "%LogDirectory%\%UpdateGroup%\Details" Goto :EOF )call tfind.com /e "no newer" %3set nonewer=%errorlevel%If /i %nonewer% GTR 0 ( move /y %3 "%LogDirectory%\%UpdateGroup%\Details" Goto :EOF )Echo %date:~3,11%;%1;Error! >> "%LogDirectory%\%UpdateGroup%\error.log"Echo %date:~3,11%;%1;Error! >> "%LogDirectory%\%UpdateGroup%\aktualizacie.log"move /y %3 "%LogDirectory%\%UpdateGroup%\Details"rem If %update% GTR 0 cscript //nologo mail.vbs /update:%1 Update.iniboolProxy=onhttp_proxy=http://proxy.domain.com:3128LogDirectory=\\server\logs 2Download.txtKillBits;Spyware;killbit.log;http://www.spywareguide.com/blocklist.regRestrictedSites;Spyware;restrict.log;https://netfiles.uiuc.edu/ehowes/www/res/ie-spyad.zipRestrictedSites2;Spyware;rest2.log;https://netfiles.uiuc.edu/ehowes/www/res/ie-spyad2.zipSpybot;Spyware;spybot.log;http://www.spybotupdates.com/updates/files/spybotsd_includes.exeSpywareBlaster;Spyware;blaster.log;http://ct7support.com/downloads/javacool/u3201/spywareblastersetup32.exeCWShredder;Spyware;shredder.log;http://cwshredder.net/bin/CWSInstall.exeBugOff;Spyware;bugoff.log;http://computercops.biz/zx/Merijn/bugoff.zipHijackThis;Spyware;hjt.log;http://downloads.subratam.org/hijackthis.zipProcessExplorer;Spyware;procexp.log;http://www.sysinternals.com/files/procexpnt.zipWMPScriptFix;Spyware;wmpfix.log;http://www.wilderssecurity.net/downloads/WMPscriptfix.exeAutoRuns;Tools;autorun.log;http://www.sysinternals.com/files/autoruns.zip U just need to setup following things:Update.iniboolProxy - enable or disable proxy server. Values must be 0 or 1http_proxy - address of the proxy server (proxy:port)LogDirectory - directory where should log files be storedThen U need to edit 2Download.txt.Every line consist of following elements (divided by semicolon): name;category;log name;URLFiles required:Tfind and wgetUsage: Update.bat name_of_update_groupFor example if you want to update your antispyware collection, U use commandupdate spyware
Martin Zugec Posted February 17, 2005 Posted February 17, 2005 Btw where to get the needed files:WGETTfindAnd finally the "program" updateUpdate.zip
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now