Seminko

Accidentally overwritten my script and closed out SciTE

20 posts in this topic

Hey fellas,

I accidentlly overwritten a script I've been working for a month on and closed SciTE.

Is there a way to find the file somewhere? In temp or any other backup dir or am I fucked?

Keeping my PC running for the time being.

Thanks,

Seminko

Share this post


Link to post
Share on other sites



If you have been using tidy (Ctrl + T) then tidied scripts are stored in the backup folder; otherwise, you should invest some time looking at version control e.g. git.


_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Right mouse click on the file and select "restore previous versions"?
This is probably a good moment to start thinking about an off-site backup. ;)

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Right mouse click on the file and select "restore previous versions"?
This is probably a good moment to start thinking about a off-site backup. ;)

Jos

I can't see that option. It was just a file that I created and worked on. I was not creating any version, I don't even know how.

So am I fucked? I have a feeling I am, right?

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Which OS? Check under File properties if there is a previous version option.
.. and did you ever use Tidy?

Jos 

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Which OS? Check under File properties if there is a previous version option.
.. and did you ever use Tidy?

Jos 

Win7. No previous version under File Properties. Didn't use Tidy.

Share this post


Link to post
Share on other sites

If it is still possible to restore the overwritten file, you must not save anything more to disk until after you try one of the available recovery tools. I'm not sure what to recommend because I haven't needed to do this for several years. If you have another device you can use to surf the net, use it to research possible recovery methods. https://www.google.co.uk/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=recover overwritten files

Share this post


Link to post
Share on other sites

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Every file of every type I've ever checked has a previous versions tab in windows 7.

From what I've read from Joz's link you have to have it set up. Apparently it is not automatic.

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

After looking around, I would be tempted to install a live kali linux distro on a memory stick. There are several tutorials about installation and data recovery, but there's no guarantee. This distro seems to have a several tools which might recover part, or all, of the overwritten file. It doesn't look very easy, but it's probably one of the best chances you have to recover anything at this stage (for free at least). You should use another machine (or drive) to download the required files to, so as to avoid any further overwriting of the lost data on your C drive.

http://docs.kali.org/downloading/kali-linux-live-usb-install

Edited by czardas

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

Sorry to hear about that, after you get this recovered....

What I do for very long scripts is save as I go along like  "scriptfunction_nov22" ,  next day a new date and so on, and I place them in an archive folder. I also so a daily upload to Google drive.

Once the task works perfectly for a long time, I delete the old versions.

This is tedious but the only way I can prevent disasters, if anybody has advice on better solutions to this, please post here ;)

2015-11-22 06_35_38-E__populate_AutoIT_nov2015.png

Edited by xuzo

Share this post


Link to post
Share on other sites

if version control software is too hard for you, online drive eg: dropbox, google drive, etc, maybe the best bet for you, you can back to previous version using that

Share this post


Link to post
Share on other sites

A habit I've gotten into now, is dragging a copy every five minutes, which is very quick and easy to do. After successful drag I delete the previous drag copy.

I do all the usual backups of versions as well, but they are not as often and are done by software, which I instigate manually when ready. If you are online though, I would use one of the many Cloud options as well, but not instead of.

There are lots of good free recovery programs out there, and many service type programs that have that as an option, but you need to install them on and run them from a different USB drive (unless installed already). As suggested above, using a Linux USB or Install partition is a good option.


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites

#16 ·  Posted (edited)

I can't remember i ever changed something in the scite properties. My Scite save a BackUp before runing (F5) a modified Script in @ScriptDir\FileName_No.au3.

Edited by AutoBert

Share this post


Link to post
Share on other sites

if version control software is too hard for you

Version control isn't hard especially with the benefit it comes with.


_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 04/09/2015

Share this post


Link to post
Share on other sites

#18 ·  Posted (edited)

I can't remember i ever changed something in the scite properties. My Scite save a BackUp before runing (F5) a modified Script in @ScriptDir\FileName_No.au3.

The default is: 

#define the number of backup files you want to keep   0=none
backup.files=0

A versioncontrol option is build-in into AutoIt3wrapper including the explanation how to set it up in the helpfile. There should not be much stopping you from using it.

Realize it is "water under the bridge" for this file though.

Jos

Edited by Jos
1 person likes this

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Thanks guys

Share this post


Link to post
Share on other sites

@Seminko Did you try Recuva? It should recover files which have been recently deleted in mint condition :), Not sure if it is capable of recovering over-written files :unsure:


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now