473,463 Members | 1,552 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Search for a file

I am trying to find out how to search for a file. I am making a
switchboard program with buttons pointing to programs, but I want to
make it so that if the program a button points to ever moves, it will
automatically search the local hard drives for it.
Thanx
-joltman
Nov 21 '05 #1
6 1336
Joltman,

You mean something as this

Filesystemwatcher
http://msdn.microsoft.com/library/de...classtopic.asp

I hope this helps?

Cor

I am trying to find out how to search for a file. I am making a
switchboard program with buttons pointing to programs, but I want to
make it so that if the program a button points to ever moves, it will
automatically search the local hard drives for it.
Thanx
-joltman

Nov 21 '05 #2
I think what the op is asking for is like this.

Create a button and point it to a program ( using process.start ), but if
the file does not exist, he wants the code to pup up a dialog box and tell
the user that this file has not been found and ask if they should search the
disk for it. ( like when an icon points to a missing file )
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:OP*************@TK2MSFTNGP11.phx.gbl...
Joltman,

You mean something as this

Filesystemwatcher
http://msdn.microsoft.com/library/de...classtopic.asp
I hope this helps?

Cor

I am trying to find out how to search for a file. I am making a
switchboard program with buttons pointing to programs, but I want to
make it so that if the program a button points to ever moves, it will
automatically search the local hard drives for it.
Thanx
-joltman


Nov 21 '05 #3
* jo*****@geocities.com (joltman) scripsit:
I am trying to find out how to search for a file. I am making a
switchboard program with buttons pointing to programs, but I want to
make it so that if the program a button points to ever moves, it will
automatically search the local hard drives for it.


<URL:http://dotnet.mvps.org/dotnet/samples/filesystem/downloads/FileSystemEnumerator.zip>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #4
Herfried,

I hate those Zip files, it tells notingin a message what it does.
I have seen you have as well pages which can be cut of, that is much better.

Just my opinion to let you know.

Cor
Nov 21 '05 #5
Terry,

I was in doubt for that, however after 5 times reading the message I thought
he wanted to have something for when the program moves (whatever that may
been and I was assuming a file).

I think that the OP started with something about searching and at the end
was telling something about a filewatcher.

I took the latest as what he wanted.

Cor

I think what the op is asking for is like this.

Create a button and point it to a program ( using process.start ), but if
the file does not exist, he wants the code to pup up a dialog box and tell
the user that this file has not been found and ask if they should search the disk for it. ( like when an icon points to a missing file )
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:OP*************@TK2MSFTNGP11.phx.gbl...
Joltman,

You mean something as this

Filesystemwatcher

http://msdn.microsoft.com/library/de...classtopic.asp

I hope this helps?

Cor

I am trying to find out how to search for a file. I am making a
switchboard program with buttons pointing to programs, but I want to
make it so that if the program a button points to ever moves, it will
automatically search the local hard drives for it.
Thanx
-joltman



Nov 21 '05 #6
* "Cor Ligthert" <no**********@planet.nl> scripsit:
I hate those Zip files, it tells notingin a message what it does.


Its content does. And I guarantee that there are no viruses the ZIP
files provided on dotnet.mvps.org.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #7

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

Similar topics

1
by: Les Juby | last post by:
A year or two back I needed a search script to scan thru HTML files on a client site. Usual sorta thing. A quick search turned up a neat script that provided great search results. It was fast,...
2
by: Rafael Nenninger | last post by:
This question has to do with MS file search but it is happening only with ..asp pages, so I though someone programming with .asp pages has experienced the same situation. I'm trying to find .asp...
1
by: Eric | last post by:
Hi: I have two files. I search pattern ":" from emails text file and save email contents into a database. Another search pattern " field is blank. Please try again.", vbExclamation + vbOKOnly...
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...
4
by: Dameon | last post by:
Hi All, I have a process where I'd like to search the contents of a file(in a dir) for all occurences (or the count of) of a given string. My goal is to focus more on performance, as some of the...
8
by: stunna | last post by:
Hi there, i want to implement a a system to search for a file in a folder using the file name and if its there, i want it to be displayed. I have one through a couple of books on how to implement...
1
by: nganglove | last post by:
C++ string search -------------------------------------------------------------------------------- Hello, please can any one help me? I am given an assigment in C++ to read a text file and...
4
by: ravindarjobs | last post by:
hi...... i am using ms access 2003,vb6 i have a form. in that i have 2 buttons 1. start search 2 stop search when i click the "start search" button the fucntion SearchSystem() is called,...
3
by: =?Utf-8?B?UGVycmlud29sZg==?= | last post by:
Not sure where to post this... Found some interesting behavior in Windows Search (Start =Search =All files and folders =search for "A word or phrase in the file:"). This applies to XP and maybe...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
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
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.