Solved

Windows 2008 server script to delete all .* files

Posted on 2010-11-17
3
560 Views
Last Modified: 2012-05-10
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.

0
Comment
Question by:sidartra
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
dacasey earned 167 total points
Comment Utility
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
 
LVL 10

Assisted Solution

by:jramsier
jramsier earned 333 total points
Comment Utility
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
 
LVL 10

Assisted Solution

by:jramsier
jramsier earned 333 total points
Comment Utility
Forgot the first quote on that script line.

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

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Set OWA language and time zone in Exchange for individuals, all users or per database.
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now