Go Back   Tech Support Forum > Microsoft Support > Windows XP Support

User Tag List

Batch File Advice - Delete Folders that are x days old

This is a discussion on Batch File Advice - Delete Folders that are x days old within the Windows XP Support forums, part of the Tech Support Forum category. Hi there, I have what might be a fairly unique request as I have been searching the forum and haven't

Closed Thread
Thread Tools Search this Thread
Old 08-03-2011, 02:31 PM   #1
Registered Member
daveefarr's Avatar
Join Date: Aug 2008
Location: Leicestershire
Posts: 127
OS: Vista SP1, Windows XP SP3 and Windows 7 64-bit

Hi there,

I have what might be a fairly unique request as I have been searching the forum and haven't found a solution for the type of batch file I am after.

Basically I am looking for a batch file that I can program to look in one Directory on the local HDD, check the contents of that Directory and delete anything (usually sub folders) that are "x" Days old.

Is this an easy thing to do or does it require some thought?

Any advice greatly appreciated.

daveefarr is offline  
Sponsored Links
Old 08-03-2011, 02:44 PM   #2
TSF Enthusiast
Join Date: Jan 2011
Location: United States
Posts: 5,959
OS: Win7, Win8, XP, Ubuntu

Several options:

windows - Batch file to delete files older than N days - Stack Overflow
How do I delete old files from a directory while keeping the most recent ones on Windows - Stack Overflow
Check several locations in a .vbs script to delete files by date. - computer help forum

TSF does not support assistance through email or private messages, please keep all questions in the open forum.
JMPC is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] help!!!! guy gone crazy with bluscreans!!!:@:@
i have an intel dh55hc motherboard in my pc i built my pc during summertime and at that time i got the patriot ram ... the whole stock had problems .. (they work with onestick bt the pc wont boot with 2 sticks) so i had a stick of 2gigs of that ram .. then i upgraded it with a kingston ram ..and...
avok95 Motherboards, Bios & CPU 21 11-17-2013 06:14 AM
Direct X Problem
When I try to install a new DirectX it says a system error occurred and to refer to the DirectX.log and dtcinstall.log This is the DirectX.log: 08/13/10 11:32:31: DXSetup: CommandLine: /silent 08/13/10 11:32:31: DSETUP: DirectXSetupA(): hWnd: 00000000 dwFlags: 02010098 08/13/10...
travhave Windows XP Support 6 11-28-2011 03:17 PM
Laptop barely works, can't access task manager
No access to a Windows install disc or a boot CD Computer takes way too long to start. Takes way too long to restart and shut down. The internet shuts off after a couple of hours and I have to restart the computer. Pop-up keeps appearing even when a web page isn't open....
BalloonBottle Resolved HJT Threads 21 07-25-2011 02:36 PM
[SOLVED] recurring BSOD on log-off and switching user (Vista)
I have been having problems when switching user on Vista. Not always, but frequently when switching from one user to another, the BSOD appears. Sometimes also when logging off from one user to switch to another. VISTA SP3 64 - bit version OEM - original OS installed on this system. Bought in...
dave0 BSOD, App Crashes And Hangs 15 06-19-2011 01:20 PM
For Ried
Hi there is a attachment ark.zip with 'dds' and 'ark'. . DDS (Ver_11-05-19.01) - NTFSx86 Internet Explorer: 8.0.6001.18702 BrowserJavaVersion: 1.6.0_13 Run by Owner at 22:01:08 on 2011-05-29 Microsoft Windows XP Professional 5.1.2600.3.1252.1.1033.18.959.243 . AV: McAfee Anti-Virus and...
Nela09 Virus/Trojan/Spyware Help 78 06-09-2011 07:32 PM

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Post a Question

» Site Navigation
 > FAQ
Powered by vBadvanced CMPS v3.2.3

All times are GMT -7. The time now is 06:44 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.1.0 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Copyright 2001 - 2018, Tech Support Forum

Windows 10 - Windows 7 - Windows XP - Windows Vista - Trojan Removal - Spyware Removal - Virus Removal - Networking - Security - Top Web Hosts