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
Solved

How to automatically delete items in the recycle bin that are greater than 30 days old.

Posted on 2006-06-21
4
218 Views
Last Modified: 2010-04-18
Is there a way (a program or scripting) to automate deleting items from the recycle bin that are 30 days old or older?
0
Comment
Question by:bonadio171
  • 2
4 Comments
 
LVL 48

Accepted Solution

by:
Jay_Jay70 earned 350 total points
ID: 16956000
the files are located in the the c:\recycler  folder, i

have a look at this link and apply to the c:\recycler folder

http://www.experts-exchange.com/Operating_Systems/MSDOS/Q_20780248.html?query=delete+files+older+than&clearTAFilter=true
0
 

Author Comment

by:bonadio171
ID: 16959337
Yeah, I've seen that script before but it doesn't really do what I need. I want it to run automatically every night and delete the files that are a month old. With that script you need to input a specific date. How can I modify it to delete items that are a month old?
0
 
LVL 48

Expert Comment

by:Jay_Jay70
ID: 16964696
i can't script which is why i pointed you off onto someone who can lol! once you get your script done you can set as a scheduled task for everynight......i can at least help you there
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
Learn about cloud computing and its benefits for small business owners.
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…

789 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