473,401 Members | 2,127 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,401 software developers and data experts.

Code to search for files in directory

MP
I was wondering if anyone can point me to some example code of searching for
a file, like *.*, or *.pdf, much like the Windows search function.

I am at a smaller location, away from the main office, and although I can
map a drive or just use \\ to go to the desired location, the connection is
too slow to search.

I'd like to implement a search function on the intranet web (at the main
office), where it will search a certain directory and its subdirectories and
return the results as network links (using the \\ convention); actually it
doesn't matter how it displays the links, as long as it shows me where stuff
is.

That way the search is run on the computer where the originating directories
are.

Thanks in advance
Jul 22 '05 #1
1 1463
Are you asking for ASP code that does this on a website, or are you just
trying to find files for your use? If you are asking for Windows help, go to
one of the other newsgroups. If you are looking for ASP code help, please
give a little more detail as to what you want.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"MP" <yt****@hotYmail.Xcom> wrote in message
news:n5********************@igs.net...
I was wondering if anyone can point me to some example code of searching
for a file, like *.*, or *.pdf, much like the Windows search function.

I am at a smaller location, away from the main office, and although I can
map a drive or just use \\ to go to the desired location, the connection
is too slow to search.

I'd like to implement a search function on the intranet web (at the main
office), where it will search a certain directory and its subdirectories
and return the results as network links (using the \\ convention);
actually it doesn't matter how it displays the links, as long as it shows
me where stuff is.

That way the search is run on the computer where the originating
directories are.

Thanks in advance

Jul 22 '05 #2

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

Similar topics

3
by: Charles Herman | last post by:
I am using the following flags for the g++ command -I/usr/local/gcc-3.3/include/c++/3.3 -I/usr/local/include/g++-3 But istead of searching the first directory first, it searches the second...
0
by: mm | last post by:
Can someone with Win 2K please help me here. Best yet, can some MVP duplicate it and report it to MS. I can't find any reference to this issue on the Web, or in MS Knowledge Base. I have been...
23
by: Han | last post by:
Our app runs on end-users machines (apache2.x + php5). At this moment it is quite easy for someone (who has access to the console) to insert a couple lines of php code to steal sensitive info. ...
1
by: scooterm | last post by:
### Background In it is possible to specify any special and arbitrary directory (or set of directories) to use as a source for custom, user-designed modules. For example, one can do: ###...
1
by: Prem | last post by:
Hi, I need to search a particular directory for all the files that do not have any extension and have a specific naming convension. The first 3 characters of the file name are alpha and the rest...
5
by: Dhans | last post by:
Framework version : 1.1 For a given directory (which may have subdirectories), I need to identify the number of text files (*.txt). For this I have tried recursive method to search files, it...
12
by: David Beoulve | last post by:
In my windows C# app, I create a thread to separate the main code block from the GUI, which recursively sorts through all the directories starting from a given point, and every time it finds a...
2
by: Zytan | last post by:
You can download them here: http://msdn2.microsoft.com/en-us/vstudio/aa718338.aspx This snippet seems wrong: Visual C# 2005 Code Snippets -filesystem -Search a Directory for Files Recursively ...
8
by: inFocus | last post by:
Hello, I am new to python and wanted to write something for myself where after inputing two words it would search entire drive and when finding both names in files name would either copy or move...
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: 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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.