By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!@echo off
pushd D:\Downloads\Programs\JPSoft
gosub download tccle v13
gosub download tccle v13 x64
gosub download tcmd v14
gosub download tcmd v14 x64
gosub download tcmd v15
gosub download tcmd v15 x64
echo.
filever /b /e *.exe
popd
goto end
:download [prod ver bit]
copy /q /z http://jpsoft.com/downloads/%[ver]/%[prod]%[bit]update.aiu
iff %_? eq 0 then
iff %@verinfo[%[prod]-%[ver]%[bit].exe] ne %@word[-0,%@iniread[.\%[prod]%[bit]update.aiu,Update,Name]] then
copy /z http://jpsoft.com/downloads/%[ver]/%[prod]%[bit].exe %[prod]-%[ver]%[bit].exe
endiff
endiff
return
:end
FTP site is basically being discontinued. There are previous threads about this.
I used to update my installers by doing "copy /u" from the ftp address. "copy /u" doesn't work with http addresses, unfortunately. I switched to a batch file based on what I saw in previous threads and modified it a bit. the batch file downloads the update.aiu file, reads that file to see what version is on the web site, then downloads the installer if it's a newer version than what I have already. Works well for me.
Why is the FTP site being discontinued? I have not seen a single mention of this - except in this thread....
That just shows the version information for the downloaded files. Filever is an external utility I've had for a long time, I'm sure you can do the same with internal function variables.Also what does:
filever /b /e *.exe
That just shows the version information for the downloaded files. Filever is an external utility I've had for a long time, I'm sure you can do the same with internal function variables.
pdir /(@verinfo[*] f) *.exe