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.
Is there any way to undo the changes of a file after it is saved? with Scripting
Collapse
X
-
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