سؤال

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