delphi 打开文件夹并定位到一个文件(使用ShellExecute时加一个select参数,原来这么简单!)
2015-11-26 22:05
876 查看
strFileName := FcxLV[nIndex].Items.Item[FcxLV[nIndex].ItemIndex].SubItems.Strings[0]; //路径
ShellExecute(0, nil, PChar('explorer.exe'),PChar('/e, ' + '/select,' + strFileName), nil, SW_NORMAL);
http://blog.csdn.net/yanjiaye520/article/details/6803795
ShellExecute(0, nil, PChar('explorer.exe'),PChar('/e, ' + '/select,' + strFileName), nil, SW_NORMAL);
http://blog.csdn.net/yanjiaye520/article/details/6803795
相关文章推荐
- shell判断文件,目录是否存在或者具有权限的代码
- debain的useradd默认没有主目录及shell
- shell 下数值、字符串比较
- Shell编程的10个最佳实践
- shell 基础 第二部分 ( cut ,sort, wc,uniq,tee ,tr)
- Shell编程入门入篇
- shell命令
- shell基础 第一部分 (特殊符号,变量)
- powershell加win的dns服务器,解决网站负载均衡问题
- adb shell 命令
- linux_shell_获取日期相关
- Shell中的数组
- 使用Shell脚本实现NFS挂载自动切换
- Shell 编程 : 数值,字符,字符串
- mintty下启动emacs shell mode后,垃圾字符问题
- bash,bg,bind,break,builtin,caller,compgen, complete,compopt,continue,declare,dirs,disown,enable,eval,exec,expo
- bash,bg,bind,break,builtin,caller,compgen, complete,compopt,continue,declare,dirs,disown,enable,eval,exec,expo
- Shell 语法 if 、 case 、for 、 while、 until 、select 、repeat、子函数
- Shell 读取文本内容
- Shell 脚本 ,, 根据进程号退出 从而关机