<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[用资源管理器打开一个目录并自动选定某个文件]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Mon, 01 Dec 2014 11:54:46 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	背景：Chrome或Firefox下文件后，在文件夹中显示时，会默认选中这个文件，这个功能是怎么实现的呢？<br/><br/>如果想要在程序中调用资源管理器打开某个目录，我们通常可以这样写：(以windows目录为例)<br/><br/> <br/><br/> const char * spath = &quot;C://windows//&quot;;<br/> ::ShellExecute(0,&quot;open&quot;,spath,NULL,NULL,SW_SHOWNORMAL);<br/><br/> <br/><br/>但有的时候，为了使程序更加人性化一些，我们想打开某个目录，并且自动的选中某个文件，那么也是可以实现的，实现方法就是通过 /select 参数调用explorer.exe。<br/><br/> <br/><br/>代码如下：<br/><br/> const char * spath = &quot;C://windows//NOTEPAD.EXE&quot;;<br/> char sparam[MAX_PATH*2+10];<br/> sprintf(sparam,&quot;/select,%s&quot;,spath);<br/> ::ShellExecute(0,&quot;open&quot;,&quot;explorer.exe&quot;,sparam ,NULL,SW_SHOWNORMAL);<br/><br/> <br/><br/>附：explorer.exe参数参考<br/><br/>参数&nbsp;&nbsp;&nbsp;&nbsp;结果 <br/>/n&nbsp;&nbsp;&nbsp;&nbsp;为默认选择内容打开一个新的单窗格窗口。<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;默认选择内容通常是安装 Windows 的驱动器的根目录。 <br/>/e&nbsp;&nbsp;&nbsp;&nbsp;使用默认视图启动 Windows 资源管理器。 <br/>/e, &lt;object&gt;&nbsp;&nbsp;&nbsp;&nbsp;使用默认视图启动 Windows 资源管理器并把焦点定位在指定文件夹上。 <br/>/root, &lt;object&gt;&nbsp;&nbsp;&nbsp;&nbsp;打开指定对象的一个窗口视图。 <br/>/select, &lt;object&gt;&nbsp;&nbsp;&nbsp;&nbsp;打开一个窗口视图，指定的文件夹、文件或<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;程序被选中。<br/>来自:http://blog.csdn.net/qiqi5521/article/details/2760419
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] 用资源管理器打开一个目录并自动选定某个文件]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>