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

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
mmflume
Posts: 15
Joined: 29 Nov 2023, 23:27

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

Post by mmflume » 16 Apr 2024, 17:42

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.

User avatar
mikeyww
Posts: 27012
Joined: 09 Sep 2014, 18:38

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

Post by mikeyww » 16 Apr 2024, 18:07

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!

mmflume
Posts: 15
Joined: 29 Nov 2023, 23:27

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

Post by mmflume » 16 Apr 2024, 18:16

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.

User avatar
V0RT3X
Posts: 236
Joined: 20 May 2023, 21:59
Contact:

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

Post by V0RT3X » 16 Apr 2024, 18:24

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

mmflume
Posts: 15
Joined: 29 Nov 2023, 23:27

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

Post by mmflume » 16 Apr 2024, 19:09

Thank you very much. I got the dump file for now. I will try the rest soon. Thanks.

User avatar
andymbody
Posts: 906
Joined: 02 Jul 2017, 23:47

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

Post by andymbody » 16 Apr 2024, 21:02

I've had success with this... Recuva

User avatar
mikeyww
Posts: 27012
Joined: 09 Sep 2014, 18:38

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

Post by mikeyww » 16 Apr 2024, 21:11

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.

Post Reply

Return to “Ask for Help (v1)”