Вопрос

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

Это было полезно?

Решение

About as simple as it gets :)

dir C:\*.pst /s /b

Другие советы

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top