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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic Update

Status
Not open for further replies.

Ronin999

Programmer
Sep 28, 2001
11
US
Hello,

I am currently doing some code to use on the Peer to Peer network here at work. I have compiled it into an executable and installed it on the machines (about 14) that will be using it. This executable will be updated every so often as new features are added, bugs corrected, etc. and I would like to keep the executable on the seperate machines to help speed up execution and cut down on network bandwidth.

Finally... the question. Does anyone know of a way to have the executable check for a newer version on the computer acting as a server and, if found, copy the new version to workstation?

Would appreciate any help ya'll can provide.

Thanks
Don
 

Finally... the question. Does anyone know of a way to have the executable check for a newer version on the computer acting as a server and, if found, copy the new version to workstation?

You could have two executables (one pre-executable that starts the main executable). And have the first executable (a small one) check the Datetime of the main executable and if it finds a newer version, have it copy it to the right location and start that.

Use :
? Fdate("c:\punch\punchclock.exe",1)
Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
Works Great!

I have been working on this thing for a while and forgot to step back and look at the forest. :)

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top