By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,534 Members | 910 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,534 IT Pros & Developers. It's quick & easy.

Search for a file

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
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

P: n/a
* 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

P: n/a
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

P: n/a
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

P: n/a
* "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 discussion thread is closed

Replies have been disabled for this discussion.