Is there any way to undo the changes of a file after it is saved? with Scripting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • euqaj
    New Member
    • Aug 2008
    • 6

    Is there any way to undo the changes of a file after it is saved? with Scripting

    After saving a file we will copy the modified version of the file then we want to undo the changes of the original file.. . Is it possible with scripting? Can anyone give us scripting codes? if possible.
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    You can only recreate the old state of the file, if there's a backup somewhere. Some editors create a temporary file in the edited files directory, which may be used for that, but quite often it's at least unclear, where such a file would be. The only possibility (that I can think of) would be to keep a backup of the original file somewhere and after copying the edited file to wherever it should go, overwrite it with the backup.

    You'll want to use the copy and maybe the move command for that.

    Greetings,
    Nepomuk

    Comment

    • questionit
      Contributor
      • Feb 2007
      • 553

      #3
      Enabling Folder "Shadow Copy" probably can help

      Qi

      Comment

      Working...