Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

utility to update files across network (software update)

Status
Not open for further replies.

codetyko

Programmer
May 26, 2001
73
MY
Is there any utility to automatically search for a file and replace it with a newer version? What I want to do is send an updated app or exe to a server or one pc and then searches the entire network for the default folder of the app and replace it if its older. Any suggestions are welcomed.
 
hmmm, nobody seems to be interested in this question....
 
Yes, better idea is update each single PC
before run application, in his .bat file.
(Mass update from server is not solution for PC turned off)
 
thanks tesar for replying.

You've got a point there. Now I need to at least know how to compare two files using the batch file which will work for all version of windows (especially win2k and me)? Do you call this batch file the same way as your normal *.prg in fpw26a? My dos is a little rusty.
 
codetyko,
If you're using DOS there is a command known as FC.COM which you can use. FC (good-'ol cryptic DOS command for File Compare). It will let you compare 2 files. Also, if you like I can throw together a quick routine in Fox that will search a drive, for a file you specify, check to see if it is older than your specified file, and tell you "Where it is", or just force a replace, if the files not in use. Can be done in about 20 lines of code.


Cheers

Thanks,
-Scott

s-) Please let me know if this has helped s-)
 
the adir command will give time and date of a file but it needs the path name to work.
(or is there an option to get directories.)



 
Scott,

I would like to have a look at the routine that you have mentioned. However, would fc.com works in w2k,me and xp as well?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top