|
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.
5 O+ T o2 e/ g% b7 L/ ^ // include SHLOBJ.H in your CPP file.0 I9 f# I, u9 V4 P1 Q
#include <shlobj.h>
! k5 q% ?) v. c4 ^ // Add this statement to your code.
7 a+ v; L4 c% V8 _5 w2 D ShellExecute(Handle,"find",NULL,NULL,NULL,SW_SHOWDEFAULT);
! ]1 M& |/ r8 Q- t GNote: 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.
! _* x$ I+ ^% g* Y, t# l3 h% c' Y% H |