question

imranklepo-5849 avatar image
0 Votes"
imranklepo-5849 asked DSPatrick answered

How to recover a not saved notepad file?

So i saved a notepad file but it didn't saved in the computer.
And i already tried the C:\Users\User\AppData\Roaming thing but it didn't worked!
Please! Its very important for work!
(Its a .txt file)

windows-10-general
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi there,

the solution depends on if you remember saving the file or not?

Case 1 - you remember saving the file
Easy way :
If you had open a text file from "D:\Work1\Workfile1.txt" and have saved it.
Then subsequent new files may show the same path for saving.
If that happens to be the case here, you may check the previously saved text files' location for your missing file.

Little bit Hard Way:
You can use Search to find files that have extention .txt and created within your suggested time frame.
You may use powershell to GCI the whole system (C: and D: from root folder) to achieve the same.


Case 2 - you dont know if you saved the file
If bymistake you haven't saved the file, then there is no certain way of recovering it.


0 Votes 0 ·
DSPatrick avatar image
0 Votes"
DSPatrick answered DSPatrick commented

Open notepad then right click on the icon on the task bar, then you should see a list of the recent files.

--please don't forget to Accept as answer if the reply is helpful--





· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for reacting but it didn't worked (It didn't saved)

0 Votes 0 ·

If the file was not written from memory to disk then there's nothing else you can do.

--please don't forget to Accept as answer if the reply is helpful--




0 Votes 0 ·
DhamankarTejas avatar image
0 Votes"
DhamankarTejas answered

Like I said in comment, If you remember saving the file.

You can use below PowerShell Command :

 Get-ChildItem -Path "D:" -Filter "*.txt" -Recurse | ? { $_.LastWriteTime -gt (Get-Date).AddDays(-3) }

explaination-
Path = "D:" (D drive - you may change drive letter)

Filtering = "*.txt" (searching for .txt file"

LastWriteTime > "AddDays(-3)"
you may change -3 to the days passed since the file may have been created/modified
this command will search 3 days back.
if you need it to search 5 days back, change -3 to -5.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

IanZheng-MSFT avatar image
0 Votes"
IanZheng-MSFT answered

Hello

You can right-click the .txt, click Properties, and check whether the read-only option is checked. If it is checked, click Cancel, and then save.

it the Answer is helpful, please click "Accept Answer" and upvote it.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered

Just checking if there's any progress or updates?

--please don't forget to Accept as answer if the reply is helpful--




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.