473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

File Search!!

Hi All, Is there a way to search for files within a specific date range and
pattern. I know the later but don't know how to enforce the date range in
searching files in a given dir.

TIA
Nov 16 '05 #1
2 2348
Hi,

You can easily do such a method, take as base the Directory.GetFiles( )
and then using File.GetCreationTime or File.GetAccessTile

It's very simple really.
Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Vai2000" <no****@microsoft.com> wrote in message
news:ui**************@TK2MSFTNGP09.phx.gbl...
Hi All, Is there a way to search for files within a specific date range and pattern. I know the later but don't know how to enforce the date range in
searching files in a given dir.

TIA

Nov 16 '05 #2
Thanks, I was looking for some COM API's (which the windows search uses...)

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

You can easily do such a method, take as base the Directory.GetFiles( )
and then using File.GetCreationTime or File.GetAccessTile

It's very simple really.
Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Vai2000" <no****@microsoft.com> wrote in message
news:ui**************@TK2MSFTNGP09.phx.gbl...
Hi All, Is there a way to search for files within a specific date range

and
pattern. I know the later but don't know how to enforce the date range in searching files in a given dir.

TIA


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: pietlinden | last post by:
Hopefully a stupid question, but it doesn't appear that way. Found an example of a recursive file search, which is exactly what I want, at Randy Birch's site (mvps.vbnet), but VBA is just...
13
by: Ray Muforosky | last post by:
Hello all: Task: I want to do file search, using the "conatining text" option from a web page. How do I search for a file on my local drive containing a certain string, from a web page. That...
3
by: Robertico | last post by:
I'am new to php and have a question about a recursive file search. I'd like to do a recursive search for jpg-files and add the filenames (full path) to a mysql database. I appreciate any help ! ...
0
by: Tim Golden | last post by:
Robert Dailey wrote: I haven't checked but I doubt this has changed from Python 2.x. Just use os.walk and filter on what you want. Vaguest and most untested code sample: <code> import os...
4
by: Sutharsan Nagasun | last post by:
Hi, I am new to Perl. I need help with file search for the following scenario. Currently as part of the archiving process, we have archived the files under /$rootdir/Archive/yyyy directory where...
10
sagacious
by: sagacious | last post by:
Hi There.. Nice Site.. I Want to add a File Search Engine For My Upload And Download Site.. As Like As Rapidshare Search Engins.. I Mean A Search System That Will Search Files From A...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.