Hello ,
I am constantly using matlab like everyday. I triedto find some code I wrote before and I never deleted them ( I am 100% sure). but I couldn't find the. how can I restore them? there are no where. not even in the recycle bin.
Please help me this is crucial it is related to my final project.
Best,
Azar

댓글 수: 2

Adam Handley
Adam Handley 2022년 5월 9일
I had a situation where it seemed my code got corrupted and the file was emptied so lost all the lines of code that had been written. If you are saving your code to OneDrive you can go online to OneDrive and download a previous version of the document.

댓글을 달려면 로그인하십시오.

 채택된 답변

per isakson
per isakson 2020년 8월 20일

0 개 추천

AFAIK: There is no magic way to find lost files.
Maybe you saved them in the wrong place? Or renamed them?
What do you know about your lost code
I use FileLocator Lite to search for files, which contains certain pieces of text. It's fast. (Windows)
Maybe the lost code exists in a backup somewhere.
Are you sure that files deleted in the Matlab Current folder are moved to the recycle bin?. See recycle, Set option to move deleted files to recycle folder

댓글 수: 7

Azar Alizadeh
Azar Alizadeh 2020년 8월 20일
편집: Azar Alizadeh 2020년 8월 20일
per isakson Thanks for answering. Frankly speaking I don't even remember I deleted that. but I searched mylaptop and searched the name of the file. but nothing found. that is wierd. I know the name.
I also checked the history, the nae is mentioned there. but there is no such file in my laptop nowhere.
per isakson
per isakson 2020년 8월 20일
That's a tough lesson. I cannot come up with anything more to propose.
More than you think is still in your brain. The code you write now will be better than the lost one.
Azar Alizadeh
Azar Alizadeh 2020년 8월 20일
Yes thank you. but one last question. if I change my system's time to 2-3weeks ago, do you think I might find them? In the history.xml, I saw that I used them on 8/8
per isakson
per isakson 2020년 8월 21일
편집: per isakson 2020년 8월 21일
It's ZERO chance that there exist a copy of your lost code outside your laptop (e.g. on a memory stick or a server somewhere) . I understand that you are sure of that. In that case I would have searched the entire drive with FileLocator Lite for the name.*. You know the name and ".*" will pick up Matlab's automatical "backups". (I'm not a Windows fan.)
Is there a chance that the lost code exists in a zip-file? Some people zip there work as a safe guard against their own mistakes.
"if I change my system's time to 2-3weeks ago, do you think I might find them?" No.
"I mean If I deleted t hat by mistake it should be in recycle bin right?" That depends on preference settings. Did you see recycle, Set option to move deleted files to recycle folder ? Google for "windows 10 recycle bin settings" (if Windows is your OS) and see, e.g How to Change Recycle Bin Settings in Windows 10.
Image Analyst
Image Analyst 2020년 8월 21일
Yes, try that search approach. More than once I've accidentally MOVED a folder to be inside another folder when I grabbed my mouse in a hurry. It happens. 😵 So maybe it's there but it's just inside another folder.
My son recommended "Everything" to me. I tried it and it's really fast. Way better than the search built into File Explorer. Maybe this weekend I'll compare it to FileLocaterLite.
Adam Handley
Adam Handley 2022년 5월 9일
I had a situation where it seemed my code got corrupted and the file was emptied so lost all the lines of code that had been written. If you are saving your code to OneDrive you can go online to OneDrive and download a previous version of the document.
BA
BA 2022년 12월 20일
Hey Adam,
I had the same issue but with Box. It appears restarting your computer seems to fix the issue! My scripts are back.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Image Analyst
Image Analyst 2020년 8월 20일

0 개 추천

I've had similar problems. Are you using Microsoft OneDrive? If so did you do anything like unlink your PC or change folders that are synced? I've seen that cause un-asked for deletions.
OneDrive also has a recycle bin separate from your local computer, so you might look there.
Otherwise see if there are any *.asv files anywhere on your local drive. These are backups of your m-files.

댓글 수: 2

Azar Alizadeh
Azar Alizadeh 2020년 8월 20일
Image Analyst Thanks for answering. I checked it. but nothing. all code was in a folder and the folder is gone. I mean If I deleted t hat by mistake it should be in recycle bin right?
Image Analyst
Image Analyst 2020년 10월 15일
I know you think you didn't intentionally delete your files.
It's possible that focus was in the "Current folder" panel on the left and a file(s) was highlighted. Then, if you didn't think you were there, but maybe thought you were in an editor window, and hit the delete key to delete something in the editor, you actually instead deleted the file(s) in the current folder panel that were highlighted.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 File Operations에 대해 자세히 알아보기

제품

질문:

2020년 8월 19일

댓글:

BA
2022년 12월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by