473,811 Members | 2,677 Online
Bytes | Software Development & Data Engineering Community
+ 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 1357
Joltman,

You mean something as this

Filesystemwatch er
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**********@p lanet.nl> wrote in message
news:OP******** *****@TK2MSFTNG P11.phx.gbl...
Joltman,

You mean something as this

Filesystemwatch er
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*****@geociti es.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/FileSystemEnume rator.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**********@p lanet.nl> wrote in message
news:OP******** *****@TK2MSFTNG P11.phx.gbl...
Joltman,

You mean something as this

Filesystemwatch er

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**********@p lanet.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
8735
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, returned the hyperlinked page title, filename, and the body txt (30 preceding and following words) in context with the search word highlighted. Excellent.! See it working at: http://www.ipt.co.za Just search for "firearm"
2
1835
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 pages with a certain table name (i.e. "renewalInfo" ) When I ran the search I get no results. I know that I have that string in a couple of pages. My file system search engine is working fine with other file types, like Word documents, Excel...
1
2729
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 Me.txtEmail.SetFocus Exit Sub End If Me.txtStatusBar.Value = "Parsing..." strEmail = Me.txtEmail.Value
13
1934
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 is, how do run the windows search program from a web page. Any help will be appreciated.
4
3387
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 files could be upwards of 25mb in size and time is important. I don't want to take the route of loading the text of the file into a giant string and searching it, but would rather focus on a performance-minded solution. Any sugesstions for a...
8
1860
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 this but still, it does not open the file. #!C:/Perl/bin/perl use strict; use CGI qw(:standard); use CGI::Carp qw(warningsToBrowser fatalsToBrowser); use DBI; use CGI;
1
3278
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 search for certain words.If those stated words are found, then I should print the enire them including the entire line. Below is an example of such a text file Example text file: Possible failures: -> Member=1, FSce=1, MP=13.16%, atching...
4
2519
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, it will search for a particular file in the computer(searches entire drives).
3
3563
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 other Windows flavors. Procedure: 1. Create a simple text file named test.txt. 2. Open the text file in a text editor and add a simple test word such as "blah" (not quotes).
0
10792
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 inside an image, hide your complete image as text ,search for a particular image inside a directory, minimize the size of the image. However this is not a new concept, there is a concept called Steganography which enables to conceal your secret...
0
9726
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10384
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10395
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10130
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9204
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, and deployment—without 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...
0
6887
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
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3865
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3017
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.