Batch updating

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
redhawk
Posts: 7
Joined: 17 Feb 2015 05:52

Batch updating

#1 Post by redhawk » 17 Feb 2015 06:00

hi i saw a similar topic for this. but yet mine is going to be a bit different and i didnt find any help in the other topic.''

basically what i have made:

a overview tool for new stuff in a comunity, this will contain all avaiable job positions
and so on. so all the administration staff will be able to see/update this

the updated version will be uploaded to an server with FTP enabled,
so basically what i want is that every time we upload a new version to this server
then the previous version will detect this and download the update.
this must be working both for win7 and win8 and win8.1

so how would i work this?

and also. it is not just 1 single file.

it is an entire folder with 8 script files that works together within eachother so how would i make it so when you start up the main script for this tool that it updates the entire folder and all files within it?

the file names for each script will remain the same so no worries in that.
the only changes will be made inside the script.


any help with this please? :D

Squashman
Expert
Posts: 4465
Joined: 23 Dec 2011 13:59

Re: Batch updating

#2 Post by Squashman » 17 Feb 2015 07:40

I am not sure if you are looking for a script to download new files or upload new files.
Regardless, we have an example of both in the script library.
http://www.dostips.com/DtTipsFtpBatchScript.php

redhawk
Posts: 7
Joined: 17 Feb 2015 05:52

Re: Batch updating

#3 Post by redhawk » 17 Feb 2015 07:44

basically.

i upload a new update for my tool onmy server by hand.

and the moment i start up the program, then it will start checking for new updates and download them


but i also want it to keep the name etc: overview_v1.bat
but the new update would etc be named overview_v2.bat

but v1 will detect the v2 and download it if it exist.
then v2 will do same for v3 when that one exist.
and so on

redhawk
Posts: 7
Joined: 17 Feb 2015 05:52

Re: Batch updating

#4 Post by redhawk » 17 Feb 2015 07:51

is it possiblie etc if i show u the script later and the root folding system from the server

that you can help me put together a script i simply can copy/paste into the top of my script

i basically want it just to: check for updates on the server
if any new files were detected of this kind then it will automatically download it and overwite the existing file thats on the user's computer

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Batch updating

#5 Post by foxidrive » 17 Feb 2015 15:16

There are simple ways to download and overwrite a file, unless the file that is doing the downloading has to be overwritten, which makes it more complicated.

Without accurate details of the task it's hard to give appropriate advice.

Post Reply