Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1957
  • Last Modified:

How can I delete Extend.dat flle from all the compters simultaneously?

Hi,

I'm planning to remove delete Extend.dat file from all my networked computers,as I'm facing problem with MS-Outlook. Is there any script/batch file to accomplish this task?

Many thanks.

BYE

0
NARENDRA_CHHATTANI
Asked:
NARENDRA_CHHATTANI
  • 2
  • 2
2 Solutions
 
kosmoraiosCommented:
You could add a line to your logon script:

del "%appdata%\microsoft\outlook\extend.dat"

Or you could use a batch file, as below, by adding all the machine names to a file called computerlist.txt. (batch script borrowed from previous answer number 23001520)


@echo off
for /F %%G in (computerlist.txt) do (
 for /F "tokens=* usebackq" %%H in (`dir "\\%%G\c$\documents and settings" /A:D /B`) do (
  del "\\%%G\c$\documents and settings\%%H\application data\microsoft\outlook\extend.dat" 2>NUL
 )
)

Open in new window

0
 
NARENDRA_CHHATTANIAuthor Commented:
Thanks I'll give a try to it an dlet u know then.


Bye
0
 
RelentimCommented:
I believe 'extend.dat' lives in the other 'Application Data' folder in 'Local Settings'.

I used this script successfully, deleting it from both, just in case.

del "%appdata%\microsoft\outlook\extend.dat"
del "%USERPROFILE%\Local Settings\Application Data\Microsoft\Outlook\extend.dat"

Open in new window

0
 
NARENDRA_CHHATTANIAuthor Commented:
Thanks a lot. I accept this as a solution


0
 
kosmoraiosCommented:
I believe credit should at least be split, as I provided the script and Relentim corrected my path.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now