|
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. ; g, L7 T6 |# m, F" x; y3 b! M$ v9 M
// include SHLOBJ.H in your CPP file.
/ \# x2 U( H ~4 j; ?2 K7 T* s1 f #include <shlobj.h>
~4 x5 f9 l( |( A) ~6 [/ |) e" g // Add this statement to your code.4 g$ ?9 Z- R+ @! u; G9 o" n1 w2 m
ShellExecute(Handle,"find",NULL,NULL,NULL,SW_SHOWDEFAULT); . [' n8 L5 `. U' s! R
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.
# o1 p: k6 M0 A8 @4 Y |