?
Solved

using xcopy to check for latest release

Posted on 2006-05-17
10
Medium Priority
?
316 Views
Last Modified: 2010-04-23
Hi
I once knew someone who had a little batch file which was used when the user wanted to run their application.

What it did was check for a latest version of the program exe on a server folder and if there was a newer one it overwrote the the local exe but if not then it just ran the local exe.

I know it used xcopy,

I am looking to do this, dcan anybody point me in the right direction or have such a thing

many regards


steve
0
Comment
Question by:davoman
  • 6
  • 4
10 Comments
 
LVL 44

Expert Comment

by:bruintje
ID: 16698321
Hello davoman,

you could look at click once publishing, we found it here by chance but it works quite well
source: http://msdn2.microsoft.com/en-us/library/31kztyey.aspx

hope this helps a bit
bruintje
0
 
LVL 1

Author Comment

by:davoman
ID: 16698337
Hi thanks for that, its not right for this application howver
0
 
LVL 44

Expert Comment

by:bruintje
ID: 16698367
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 44

Expert Comment

by:bruintje
ID: 16698403
if this is a windows forms application why not use click once publishing? if you want to check the server for updates the client takes care of that on starting up just as you wanted but there is probably some other reason
0
 
LVL 1

Author Comment

by:davoman
ID: 16698423
Ok the biggest reason is that it is a 2003 not a 2005 application which means click once is not available, also XCOPY deployment is not needed here, just a simple batch file which xcopies the exe from a server if it is newer
0
 
LVL 44

Expert Comment

by:bruintje
ID: 16698735
now i understand why you came up with xcopy its a DOS command also

xcopy c:\src\*.* "d:\my dest\*.*" /s /y

will copy the complete scr folder to my dest on d
0
 
LVL 1

Author Comment

by:davoman
ID: 16698975
will that check for newer version, thats the point of this if the file is newer on the server than the local exe then overwrite it
0
 
LVL 44

Accepted Solution

by:
bruintje earned 2000 total points
ID: 16698985
you can also use Replace in a bat file

open notepad
paste this

@ECHO OFF
REPLACE c:\source\*.* c:\dest /U
:END

save it as myreplace.bat

using the /U switch it will copy only files from the source folder to the dest folder that are newer, so if this is for an exe only then i think it will do the job
0
 
LVL 1

Author Comment

by:davoman
ID: 16699001
thats brilliant thanks a lot
0
 
LVL 44

Expert Comment

by:bruintje
ID: 16699009
thank you :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Integration Management Part 2
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question