473,799 Members | 3,212 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1480
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********@hotm ail.com
http://www.nathansokalski.com/

"MP" <yt****@hotYmai l.Xcom> wrote in message
news:n5******** ************@ig s.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
9245
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 directory first. When I interchange the directories, it still searches /usr/local/include/g++-3 first. How can I force it to search in the order I want? When I do not include any -I flag in the g++ commnand, it searches only
0
5793
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 able to duplicate this problem on two different Win 2K installations. Steps: 1. Win 2K installation, SP4 with .NET 1.1 installed
23
5096
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. Is there a way to check the integrity of the php and javascript code by using digital signatures/simple hash/etc. ? What do you do to verify that your code has not been changed by someone else and everything is leaked to a rogue site?
1
1766
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: ### begin script ### (located in ../faa/faa_script.xyz) ### init script
1
7558
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 are numeric. For example, valid files are 'abc1234', 'xyz9876' etc. Is there a search pattern I can use with the Directory.getFiles( ) method. Thanks in Advance Prem
5
8344
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 works fine for the directory which has smaller size, but it takes 2 or 3 minutes to search the directory of size 8GB (say “C:”). Is there any other quicker method to identify whether the given file type (txt) is available in the given directory,...
12
1866
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 "*.html" file, it starts a new thread to go to work on that file. Since each individual thread doesn't have to touch another's file, this works fine. What I need to know is when all of these threads are finished. Theoretically a lot of threads...
2
2938
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 I don't believe DirSearch will return any results for files in the root directory originally passed to it. Am I right? Here's the code:
8
2322
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 thoe files to a specified directory. But couple of attempts did not work as desired this is one of them. Could someone help fix it or maybe give a better example.
0
9687
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9541
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9073
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7565
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4141
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.