Click here to Skip to main content
14,971,553 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
Hi All,

I am working on Patch installer and am stuck at one point. When I run my patch file (.bat) file then it copies files to c:\abc path which contains a.txt,b.txt etc files.

In case if there is any problem while copy or any error occurs while doing this. Then I want to rollback all changes to earlier version.
eg:- if a.txt file is replaced and while making changes to b.txt file if it gives an error . So in that case whatever changes are done previously on other files should be rolledback.

Is there any way to do such things.... using COMMAND LINE
Posted
Comments
   
Not clear. What is "Patch installer"? Is it some installer product, or you just installing patches? What are you using?
—SA

1 solution

Make a copy of your originals to another folder then try replacing, if you encounter an error the restore your files from the backup folder.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900