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

Finding Files

DLG
What is the best way to search a user's hard drive to find the location of
known files? I have users with multiple versions of MS office and I need to
confirm where certain applications are installed.
Nov 21 '05 #1
5 922
Why don't you have a look in the registry (InstallRoot)?

Here's an article that should point you in the correct direction:
http://office.microsoft.com/en-us/as...364611033.aspx
--
http://www.khsw-be.net

"DLG" <de******@hotmail.com.nospam> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
What is the best way to search a user's hard drive to find the location of
known files? I have users with multiple versions of MS office and I need
to confirm where certain applications are installed.

Nov 21 '05 #2
"DLG" <de******@hotmail.com.nospam> schrieb:
What is the best way to search a user's hard drive to find the location of
known files? I have users with multiple versions of MS office and I need
to confirm where certain applications are installed.


If you are looking for a multithreaded solution:

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

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
Herfried,
If you are looking for a multithreaded solution:

I did not look at your solution however I direct will accept that it will be
as normally from you very fine.

However, what is the reason for multithreading in this. I had long
discussion online and offline with Jon when he was creating his pages about
multithreading about the sense of multithreading, (where to use and where
not).

About this there was not any discussion (in that time he gave me at least
the idea that he thought that it was good to use it everywhere).

Multithreading by disc access will probably only give longer processing
time and an earlier need to renew your discs because of the rumbling you are
creating.

Cor
Nov 21 '05 #4
Cor,

"Cor Ligthert [MVP]" <no************@planet.nl> schrieb:
Multithreading by disc access will probably only give longer processing
time and an earlier need to renew your discs because of the rumbling you
are creating.


The class uses multithreading in order to decouple the UI from scanning the
harddisk. This doesn't have a negative impact on the disk, but it increases
the user experience.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5
Herfried,

Clear, however in my opinion you should write this next time, I was thinking
that there where 20 searches starting in the same time (easy to do with
Queu, however only time consuming and probably gives it as well a lot of
rumble).

I have seen people asking for that in these newsgroups.

This means something as "doing the search in a seperated thread"

:-)

Cor
Nov 21 '05 #6

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

Similar topics

22
by: Tony Houghton | last post by:
I'm using pygame to write a game called Bombz which needs to save some data in a directory associated with it. In Unix/Linux I'd probably use "~/.bombz", in Windows something like "C:\Documents...
8
by: Kai-Mikael Jää-Aro | last post by:
AIUI, there are no global style defaults for HTML tags, i e the W3C does not enforce that e g an <H1> should have a specific type-face, size, and so on, but rather this is decided by the browser. ...
15
by: Benjamin Rutt | last post by:
Are there any C tools that can find redundant #includes in a project, so as to shorten compile time? Of course, eliminating single #includes by hand and determining if the recompile fails is one...
8
by: Rick Strahl [MVP] | last post by:
Hi all, I'm building an app that uses the ASP.Net runtime... One problem I've run into is that pages running inside of the runtime are not finding DLLs in the GAC. In fact, if I look at the...
9
by: Laurent Bugnion | last post by:
Hi, I am wondering what is the best way to find out which ASP.NET sessions are still active. Here is the reason: I have a custom control which can upload files. It saves the files in a folder...
1
by: me | last post by:
Hi, Im having a few issues with finding exactly which program may be accessing a certain file. Lets say I need to replace a DLL with a newer version, but I need to make sure its not being...
4
lucas911
by: lucas911 | last post by:
I'm sure that this is possible: I have a parent directory that has sub directories. Each sub directory will store certain files in certain formats, i.e. i have 1 directory for excel, 1 for...
6
by: begum | last post by:
HI everybody; I have problem about selecting files in my main file. I have to find the files whose ending INF. What Can I do?Can anybody help me? using System; using...
1
by: avik1612 | last post by:
Hi, I have created a program to find text files in a particular directory or folder. and to find a particular word in that files i finding it difficult to put the list in an array and finding...
5
by: mohi | last post by:
hello everyone i m positing this again but can't help as im not finding any solution to this . my problem is i have to browse a directory to search for all the files in it and process certain...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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
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.