Lost ino file

I was working on a sketch yesterday but now I can't find it. It's not in the list of Recent Files. I have found a file with the same name but with .cpp after it i.e. L298D.ino.cpp It's in my Appdata folder. That file contains an earlier version of the file I was working on. Can anyone suggest where the file might have got to? I'm sure I saved it not long before I finished working on the PC yesterday.

Thanks

I suggest you use your PC operating system's search utility to find all files with the .ino extension?

...R

If you have a standard setup for the IDE, the sketch should be in C:\Users\yourUsername\Documents\Arduino unless it was moved.

You can check file -> preferences, sketchbook location for the standard location.

ronb1949:
I'm sure I saved it not long before I finished working on the PC yesterday.

Clearly you didn't save it, or not at least under the same name, or you've completely forgotten its name.
Might be have been auto-named as sketch_april28a.ino? I suggest getting into the habit of always saving before compiling/downloading, and chosing memorable names.

Also make sure you have a backup system of some sort.

I find Agent Ransack useful in finding lost/mislaid files on Windows. It will search specified folder or folders, or a whole drive or drives, for files with matching names and/or containing specified text

ckeck the whole disk for "all the .ino" files AND "modified at(date)"

Thanks for your help. I reconstructed the file ok.