![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Apr 2006
Location: Calgary, Alberta
Posts: 67
Rep Power: 3
![]() |
Basic File Search Program
I was wondering it, given a windows directory, there is a function to read all the names of files in that directory. Essentially what I want to do is have a program search for strings within file name, so I just need to read the program name into the program.
And would such a thing be easier in C++ or C#? |
|
|
|
|
|
#2 | |
|
Hobbyist Programmer
Join Date: Oct 2005
Posts: 211
Rep Power: 4
![]() |
Quote:
dir /s /b *<searchString>* -MBirchmeier |
|
|
|
|
|
|
#3 | |
|
Professional Programmer
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 378
Rep Power: 3
![]() |
Quote:
__________________
I am Addicted to Linux! |
|
|
|
|
|
|
#4 |
|
Expert Programmer
|
C# would be easier...
C++ would be better for the knowledge
__________________
"When in Rome, Do as the Romans Do" "Beauty is in the eye of the BEER holder" "Save your breath your going to need it for your blow up doll later" SearchLores.org |
|
|
|
|
|
#5 |
|
Hobbyist
Join Date: Sep 2005
Posts: 263
Rep Power: 4
![]() |
MSDN example: http://msdn.microsoft.com/library/de..._directory.asp
You can also navigate the shell namespace through COM. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|