Page 1 of 1

I accidently deleted a script file, how can I restore it?

Posted: 16 Apr 2024, 17:42
by mmflume
I think I accidently deleted my script file, but the script is still loaded and working.
I wonder if there is a way to restore the script file. I tried Edit This Script, but it only makes a new empty file with the same name.
I would appreciate your help. Thanks.

Re: I accidently deleted a script file, how can I restore it?

Posted: 16 Apr 2024, 18:07
by mikeyww
Just ideas:
  1. Recycle Bin?
  2. Press Ctrl+Z repeatedly to undo your actions in the text editor.
If you deleted the content of your script file and then saved the file but Ctrl+Z does not work, then there might not be much to do unless you have a backup, a time-machine kind of program, etc.

I'm sure that someone on the forum knows how to drag your script from memory!

Re: I accidently deleted a script file, how can I restore it?

Posted: 16 Apr 2024, 18:16
by mmflume
Thank you for the answer! The file is gone, and I was hoping to extract the scripts from the one that loaded. I guess that it's impossible.

Re: I accidently deleted a script file, how can I restore it?

Posted: 16 Apr 2024, 18:24
by V0RT3X
If the script is still running and you can create a dump file through task manager, this link may or may not help...

https://superuser.com/questions/817375/recover-the-text-from-a-notepad-dump-file

Re: I accidently deleted a script file, how can I restore it?

Posted: 16 Apr 2024, 19:09
by mmflume
Thank you very much. I got the dump file for now. I will try the rest soon. Thanks.

Re: I accidently deleted a script file, how can I restore it?

Posted: 16 Apr 2024, 21:02
by andymbody
I've had success with this... Recuva

Re: I accidently deleted a script file, how can I restore it?

Posted: 16 Apr 2024, 21:11
by mikeyww
The issue seems to be that the file was overwritten, though there might still be some recoverable data. The dump approach might be more reliable, but various data recovery programs are available, too. I have successfully used ReclaiMe in a few other instances but never tried it in this circumstance.