updates - updating tool from site in cmd -


so have simple batch tool

its url somesite.tool[version].zip eg: somesite.tool1.9.zip

and theres file in tool called version. in case contains 1.9 tool.zip have file version in main folder has 7za.exe in main folder.

and theres file 'somesite.version.txt' oh note, file downloads instantly on entering url , pressing enter (dropbox)

start "somesite.version.txt" set /p "newversion=<path\version.txt" 

its path gives prob know nothing path.

what wanna add feature update in tool automatically following

> download version.txt > close browser dowloaded (optional) > check current version.txt > if not same extract new tool after deleting previous 1 

i stuck @ comparing coz dont know file downloaded automatically.

thanks in advance efforts

found answer using wget.exe can download file current directory wget somesite.version.txt


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -