Solved

Windows 2008 server script to delete all .* files

Posted on 2010-11-17
3
561 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
ID: 34156999
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
ID: 34157050
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
ID: 34157068
Forgot the first quote on that script line.

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

0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
"Migrate" an SMTP relay receive connector to a new server using info from an old server.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

895 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

13 Experts available now in Live!

Get 1:1 Help Now