|
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. 3 S. y% f% |2 y: h5 ^( i
// include SHLOBJ.H in your CPP file.7 e n0 b( F7 r& U
#include <shlobj.h>
9 C2 j( a E0 h& \2 Z6 j/ w // Add this statement to your code.8 G p3 ]( x: a _* u
ShellExecute(Handle,"find",NULL,NULL,NULL,SW_SHOWDEFAULT); , \; f/ e! b3 ]& Z; K
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.
7 a, p8 T v x3 ~# [ |