Solved

Force Deletion of bak files

Posted on 2009-05-08
2
318 Views
Last Modified: 2012-05-06
I need to delete all *.bak files in my win 2003 file server.

 I already tried "del e:\*.bak /q /s /f" but i am getting an error that file names are too long or too deep.

Can robocopy do this? what about a vbscript?

Thanks
0
Comment
Question by:lurezero
  • 2
2 Comments
 
LVL 3

Expert Comment

by:SalmanZG
ID: 24340577
For deletion, I use robocopy to move all selected files to a temp folder and then simply delete that folder.

Hope this helps.
0
 
LVL 3

Accepted Solution

by:
SalmanZG earned 500 total points
ID: 24340624
robocopy <source> <dest> *.bak /mov /s
rmdir <dest> /S /Q
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Learn about cloud computing and its benefits for small business owners.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

820 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