avoid write-protection for running .exe

D

Dietmar Brueckmann

Hi,

I want to update a .exe-file with a newer version for my inhouse-users via
xcopy-batch-file.
But if the user runs this .exe the xcopy fails and I've to phone him and..
Or I write an intelligent update-service, checking in start procedure if
there is a new version, start the update-process...
A very simple solution would be to set an option that it is possible to
overwrite currently running .exe-files. Than I would start my .bat with
xcopy and after success I would sent an email.
Does anybody know if there is such an interesting option or similiar simple
solution for this problem.
 
Joined
May 5, 2011
Messages
1
Reaction score
0
Easiest would be to use a command line utility called hobocopy. Strictly made for copying complete directory structures but can be used for a single file in the following manner:

hobocopy "z:\sourcedir" "c:\program files\dest" program.exe

Best to use the quote marks and don't use trailing directory slashes (which is contrary to the documentation for some reason)

https://github.com/candera/hobocopy/downloads
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top