Tom's Hardware Forums » Windows XP » Windows XP General Discussion » Date sensitive deleting batch file
 

Date sensitive deleting batch file




Word :   Username :  
 
Bottom
Author
 Thread : Date sensitive deleting batch file
 
Profile: stranger
More Information

Can anyone help me write a batch file that will delete files with dates older than 1 week earlier than today's date.
I know you can get today's date from the DATE command, but how can I subtract 7 days and use that date as a switch in my ERASE command?


  Tom's Hardware Forums » Windows XP » Windows XP General Discussion » Date sensitive deleting batch file

Go to:
 

Google Ads
Ad
News

Microsoft releases download of Vista RC1

Published on August 29, 2006

Microsoft is offering Vista beta testers a pre-RC1 ISO download. Users can download the file and create a bootable DVD using a common DVD burning software. Read more

ATI R700 Previews On The Web, Card To Hit Stores On 08/13

Published on July 15, 2008

Mountain House (CA) - The first batch of R700 previews hit the Internet today as AMD lifted the news embargo for a very limited number of hardware review websites. Read more

Samsung recalls SD cards

Published on March 07, 2007

Market sources recently said Samsung Electronics has recalled a batch of SecureDigital (SD) cards from downstream packaging and testing houses due to a defective controller IC. Read more

Flexible transistors for your clothes

Published on October 03, 2006

Physicists from Austria and the U.S. have built ultra-thin pressure sensors which can be woven into sensitive textiles. Read more

Latest Reviews & Articles

Interview: Bigfoot's Killer NIC, Exposed

Published on October 02, 2008

Since its release, the Killer NIC has garnered a reputation for being an extravagant and largely unnecessary add-on for the do-it-yourselfer. Seeking additional insight, we approached the card's designer. Read more

Seagate's 1.5TB Barracuda: Bigger And Better?

Published on October 02, 2008

Seagate is the first hard drive vendor to offer a 1.5 TB drive in the 3.5” form factor. Meanwhile, WD sent us its RAID Edition 3 (RE3) drive. We tell you which is the best HDD choice today. Read more

Updated CPU Charts 2008: AMD Versus Intel

Published on October 01, 2008

The processor is the heart of your PC, and our updated charts for Q3 2008 show 54 of them competing in terms of performance. Using our updated suite of benchmarks, compare your favorite AMD and Intel CPUs after reading this introduction. Read more

Stalker: Clear Sky - Is Your System Ready?

Published on September 30, 2008

Thinking about picking up the latest update to Stalker, but not sure if your graphics subsystem can handle it? Hang on as we take you through a performance tour and demonstrate how the game has been prettied up. Read more