My codes and functions are deleted

40 vues (au cours des 30 derniers jours)
Azar Alizadeh
Azar Alizadeh le 19 Août 2020
Commenté : BA le 20 Déc 2022
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 commentaires
per isakson
per isakson le 1 Déc 2020
Adam Handley
Adam Handley le 9 Mai 2022
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.

Connectez-vous pour commenter.

Réponse acceptée

per isakson
per isakson le 20 Août 2020
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 commentaires
Adam Handley
Adam Handley le 9 Mai 2022
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 le 20 Déc 2022
Hey Adam,
I had the same issue but with Box. It appears restarting your computer seems to fix the issue! My scripts are back.

Connectez-vous pour commenter.

Plus de réponses (1)

Image Analyst
Image Analyst le 20 Août 2020
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 commentaires
Azar Alizadeh
Azar Alizadeh le 20 Août 2020
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 le 15 Oct 2020
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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Historical Contests dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by