473,378 Members | 1,355 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,378 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 2344
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.