韩冰 发表于 2005-1-26 01:23

Ask the API to find a file

<P> 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. </P>
<P>    // include SHLOBJ.H in your CPP file.
    #include &lt;shlobj.h&gt;</P>
<P>    // Add this statement to your code.
    ShellExecute(Handle,"find",NULL,NULL,NULL,SW_SHOWDEFAULT);</P>
<P>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>
页: [1]
查看完整版本: Ask the API to find a file