|
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. * N/ g# `) [7 s+ Y0 s7 c
// include SHLOBJ.H in your CPP file.- A7 {1 q9 m3 l
#include <shlobj.h> ; C6 H1 P8 U) V
// Add this statement to your code.
$ ?1 a7 Q) x6 ]( O8 \2 b1 N$ O' E ShellExecute(Handle,"find",NULL,NULL,NULL,SW_SHOWDEFAULT); $ v3 D; U! V& s) U3 ?) z" @. M0 ]) O
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.
# p! D+ a7 Y2 g9 H: v, v |