Solved

Force Deletion of bak files

Posted on 2009-05-08
2
315 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

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