now let’s begin
dir /b /a /s c:\\ > cdirs.txt
this command is responsible to list all the files in the C drive

as we can see we got the file containing every file in the C drive
now let’s search in those files
type cdirs.txt | findstr /i passw
this command will search all the files in the cdirs.txt and search for the pattern passw

now look at this

as we see we found intresting file so let’s reveal it’s content
type c:\\Users\\IEUser\\Documents\\passwords.txt

as we are lucky enough to get the username and the password