Windows 2008 server script to delete all .* files

I ave a file server with over 2million files. I tested a replication software and it created a 4kb hidden file for every file and folder

e.g.  C:\Department\Finance\2008\Leave.xls there would be a file
C:\Department\Finance\2008\._Leave.xls (all file now have a ._ prefix 4kb shadow file)

Is there a script or command I can use to recurse all folders to delete any file with a "._" prefix?

Thanks.

sidartraAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
dacaseyConnect With a Mentor Commented:
Is this a one time operation?  If so simpley click on my computer and c drive then in the search box type enough of your file name to be unique ie _Leave.  

When the search returns you can select all and delete.
0
 
jramsierConnect With a Mentor Commented:
Make a command:

Del /f /s /q C:\Department\Finance\*._ prefix"


f = force
s = include subfolders
q = does not prompt for delete

Edit as needed.
0
 
jramsierConnect With a Mentor Commented:
Forgot the first quote on that script line.

Del /f /s /q "C:\Department\Finance\*._ prefix"

0
All Courses

From novice to tech pro — start learning today.