Question

Can anyone help me with a (simple as possible) batch file I can unleash on a users profile to search for PST files. I would need to see the location of any PST files that were found.

Thanks all

Was it helpful?

Solution

About as simple as it gets :)

dir C:\*.pst /s /b

OTHER TIPS

Variable %USERPROFILE% gives the profile directory of currently logged in user. You can use the DIR command to list all the *.PST files recursively under that. The simplest script would be

ECHO using directory %USERPROFILE%

DIR /B /P /S %USERPROFILE%\*.PST

You can change the switches of DIR command to format the output.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top