QQ登录

只需要一步,快速开始

 注册地址  找回密码
查看: 2407|回复: 0
打印 上一主题 下一主题

Ask the API to find a file

[复制链接]
字体大小: 正常 放大
韩冰        

823

主题

3

听众

4048

积分

我的地盘我做主

该用户从未签到

发帖功臣 元老勋章

跳转到指定楼层
1#
发表于 2005-1-26 01:23 |只看该作者 |倒序浏览
|招呼Ta 关注Ta

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.

; g, L7 T6 |# m, F" x; y3 b! M$ v9 M

// include SHLOBJ.H in your CPP file. / \# x2 U( H ~4 j; ?2 K7 T* s1 f #include <shlobj.h>

~4 x5 f9 l( |( A) ~6 [/ |) e" g

// Add this statement to your code.4 g$ ?9 Z- R+ @! u; G9 o" n1 w2 m ShellExecute(Handle,"find",NULL,NULL,NULL,SW_SHOWDEFAULT);

. [' n8 L5 `. U' s! R

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. # o1 p: k6 M0 A8 @4 Y

zan
转播转播0 分享淘帖0 分享分享0 收藏收藏0 支持支持0 反对反对0 微信微信
您需要登录后才可以回帖 登录 | 注册地址

qq
收缩
  • 电话咨询

  • 04714969085
fastpost

关于我们| 联系我们| 诚征英才| 对外合作| 产品服务| QQ

手机版|Archiver| |繁體中文 手机客户端  

蒙公网安备 15010502000194号

Powered by Discuz! X2.5   © 2001-2013 数学建模网-数学中国 ( 蒙ICP备14002410号-3 蒙BBS备-0002号 )     论坛法律顾问:王兆丰

GMT+8, 2026-8-11 15:45 , Processed in 0.390386 second(s), 51 queries .

回顶部