Batch Files - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 03-21-2006, 04: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, 04: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
Default

no but you could do this with vbscript
__________________

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

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, 01:18 AM   #4 (permalink)
Super Techie
 
Join Date: Dec 2004
Posts: 319
Send a message via AIM to evelmunkey
Default

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"

Pause
__________________
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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 10:21 AM.


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