Batch Files - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Closed Thread
Thread Tools Display Modes
Old 03-21-2006, 03:11 PM   #1 (permalink)
Newb Techie
Join Date: Mar 2006
Posts: 29
Exclamation Batch Files

With a batch file can you make it query a folder and only find the files that were modified after a certian date, then get command prompt to display the file names.

CoDeR is offline  
Old 03-21-2006, 03:29 PM   #2 (permalink)
It's all just 1s and 0s
office politics's Avatar
Join Date: Jan 2004
Location: in the lab
Posts: 6,555
Send a message via MSN to office politics

no but you could do this with vbscript

office politics is offline  
Old 03-21-2006, 08:18 PM   #3 (permalink)
Super Techie
Join Date: Dec 2004
Posts: 319
Send a message via AIM to evelmunkey

Im sure that you could this...would need to do some research. I am at work now...but maybe when I get home.
evelmunkey is offline  
Old 04-15-2006, 12:18 AM   #4 (permalink)
Super Techie
Join Date: Dec 2004
Posts: 319
Send a message via AIM to evelmunkey

Here is a down a dirty way to do it. You need to copy the text after the line and create the .bat file. When you run it, you have to type whatever date you want after the program. For example, lets name it search.bat. You would need to runt it by typing

search.bat 04/15/2006

That would find all file modifed on that date. It is not very useful to display on the commad line because there a lot of files modified everyday. I would write it to a file by adding > c:\file.txt after the DIR line like this.

DIR c:\*.* /s |Find "%1" >c:\file.txt

I dont know what youre trying to do with this so I am not sure of this is what you want. If this doesnt work let me know what youre trying to do and I will try some different things.

@Echo off

DIR c:\*.* /s |Find "%1"

evelmunkey is offline  
Closed Thread

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are Off

Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities

Copyright 2002-2015 Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 06:39 AM.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2016, vBulletin Solutions, Inc.