Solved

Force Deletion of bak files

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

777 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