Trying to write a batch file that will delete the *.oab from all users profiles on a workstation. The path is below:
C:\Documents and Settings\%userprofile%\Local Settings\Application Data\Microsoft\Outlook\*.oab
would like it to delete the *.oab files from all profiles on the workstation
This path implies WinXP or earlier and not Vista, or Win 7/8, right?
Assuming the folders are not encrypted, this should work ...
for /D %%F in ("C:\Documents and Settings\*\Local Settings\Application Data\Microsoft\Outlook\") do del %%F\*.oab /f
See the FOR/? help for an explanation of why this will work.
Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.
Would you like to participate?