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
Post a Comment