Domanda

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

È stato utile?

Soluzione

About as simple as it gets :)

dir C:\*.pst /s /b

Altri suggerimenti

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top