Java如何打开一个文件夹并选中指定文件
来源:互联网 发布:iphoto mac 破解版 编辑:程序博客网 时间:2024/05/22 11:44
很简单,调用explorer.exe就可以,
Runtime.getRuntime().exec(
"rundll32 SHELL32.DLL,ShellExec_RunDLL " +
"Explorer.exe /select," + targetDirectFileName);
[Windows Explorer Switches]
Windows Explorer switches are useful in creating rooted folders:
Explorer [/e][,/root,<object>][[,/select],<sub object>]
/e
Use Explorer view (scope and results pane view). The default is
Open view (results in pane view only).
/root<object>
Specify the object in the "normal" name space that is
used as the root (top level) of this Explorer/Folder (i.e., local
path or UNC name). The default is the Desktop).
/Select
The parent folder opens and the specified object is selected.
<sub object> Specify the folder unless /select is used. The
default is the root.
- Java如何打开一个文件夹并选中指定文件
- 如何打开一个文件夹并选中指定文件
- 用java打开个文件夹并选中指定文件
- 打开一个指定的文件夹并选中里面的一个指定文件或文件夹
- 打开文件夹,并同时选中指定文件
- C++打开指定文件夹,并选中文件
- C++打开指定文件夹,并选中文件
- C++打开指定文件夹,并选中文件
- C++打开文件夹并选中指定文件
- 如何打开一个文件夹并选中该文件夹中的某个文件
- C# 打开文件夹,并同时选中指定文件
- 用C++打开指定文件夹,并选中文件
- C# winform打开文件夹并选中指定文件
- 打开文件夹并选中文件
- 打开指定文件夹并选中文件,打开指定文件 .NET实现
- 如何实现打开文件所在文件夹的功能(打开所在文件夹并选中文件)
- MFC中打开指定文件夹并默认选中该文件夹中的某个文件
- 打开文件所在文件夹并选中文件
- Test
- String.getBytes()的问题
- 精彩的近乎完美的分页存储过程
- delphi杂记
- SQL Server通用分页存储过程:利用SQL Server未公开的存储过程实现
- Java如何打开一个文件夹并选中指定文件
- ASP.NET中的一些字符串操作
- Swing中弹出对话框的几种方式
- 一个asp日历
- 修改收藏夹,我的文档等目录默认位置
- 用Visual C#实现局域网通讯
- ORACLE 10G在RedHat AS4下的安装与卸载
- 创建未绑定的 Windows 窗体 DataGridView 控件
- 一个女司机被强奸后