|
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.
1 E) o7 x- m2 T* d // include SHLOBJ.H in your CPP file.
R0 M& W; @" x) `1 n# G #include <shlobj.h>
" V$ u% d2 ?6 z3 C: Y/ I5 y // Add this statement to your code.1 E: E: X% |' R6 F5 p
ShellExecute(Handle,"find",NULL,NULL,NULL,SW_SHOWDEFAULT);
3 S9 B0 H, h4 _) d* |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.
& F7 [* P+ r; _' _ |