|
You can find files by using the ShellExecute function. Unfortunately, this doesn't quite work like I was hoping. Here is how you do it. ' N+ |/ v0 y6 S7 l7 s9 w
// include SHLOBJ.H in your CPP file.
( o, f5 W7 T4 p/ w$ o. E" w #include <shlobj.h>
1 A+ O6 |! ~7 B: J, M6 n // Add this statement to your code.
! |, a/ K$ S9 }% I1 ]7 H: j, r7 M+ t# } ShellExecute(Handle,"find",NULL,NULL,NULL,SW_SHOWDEFAULT); / y x5 l( W0 b% l% o; N3 Y7 p
Note: The downfall is that you can't specify what to search for. ShellExecute usually allows you to specify a filename, but you can't specify a file when you use the "find" command. ! u u5 L3 H4 J8 D
|