Windows Commands / IT Support Guides
Find files from Command Prompt with dir
A user may know a filename but not where an application saved it. A scoped search is often faster and less intrusive than searching the entire system drive.
Environment and inputs: Windows 11 · Command Prompt unless PowerShell is specified
Try the diagnostic command
Use the stated shell and platform. Replace sample domains, addresses, services and paths with values from the system you are authorized to support.
dir "%USERPROFILE%\Documents\*.pdf" /s /b
How to read the result
The pattern selects PDF files under Documents. /s searches subdirectories and /b returns paths without the usual directory headings.
What to do next
Change the pattern and root folder to match the user's report. Confirm the file's modification time and open it with the user before concluding that it is the missing document.
Before you make a change
Managed folders may be redirected to OneDrive or another location. A missing result does not prove deletion; check the application's actual save path and approved recovery options.