|
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. 4 h1 H) Q3 ~1 I+ u# [: {5 O+ }; x* Z1 H6 D
// include SHLOBJ.H in your CPP file.
3 P5 S4 N7 Z' ^) J #include <shlobj.h> , p* C1 x+ g: n7 `0 \
// Add this statement to your code.
, w, Q/ t6 c l7 X% p. `! Z ShellExecute(Handle,"find",NULL,NULL,NULL,SW_SHOWDEFAULT); ! D" j4 P- U- M7 }3 a7 b% G
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.
A3 _5 Y7 A+ ^, l5 K/ ^ |