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

version control

Status
Not open for further replies.

shetlandbob

Programmer
Mar 9, 2004
528
GB
Hello I was wondering if anyone can give some ideas? (i appeaer to be out of them!)

I have a project that creates an executable run.exe (say), that will be installed in the users C drive. However the developer will release new versions on the run.exe file periodically which will be stored in

network-drive/project/release/run.exe (say)

I was planning on checking the dates of the two executables when run.exe is launched - hence there would be a difference if a new version has been released - then I could initiate a process to update the local version of run.exe (by exiting run.exe and calling a different program update.exe (also local) which copies the network version local. However I dont know how to get the date file attributes of the local exe (as I cant open it since I am executing it).

Any ideas on how this could be done? Is there a built in version number system in Visual Studio.Net?? If so can anyone point me in that direction? And how is it used?

Phew, any help much appreciated (as always!)

Bob
 
The simplest solution that springs to mind is simply using xcopy, like

Code:
xcopy srcfile dest /D /Y

where the /D switch results in copy only being performed if srcfile is newer then the one in dest.

Open a console and type help xcopy for more info.

/Per

"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top