Solved

Windows 2008 server script to delete all .* files

Posted on 2010-11-17
3
565 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Is Your AD Toolbox Looking More Like a Toybox?

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

Suggested Solutions

This article explains how to install and use the NTBackup utility that comes with Windows Server.
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
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 …

751 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