📄 怎样打开目录.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0056)http://www.delphibbs.com/delphibbs/dispq.asp?lid=1010754 -->
<HTML xmlns:tools><HEAD><TITLE>大富翁论坛 delphibbs.com</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META content=大富翁,论坛,技术,积分,排行榜,Delphi,Kylix,Java,XML,XSLT,forum name=keywords>
<META
content="大富翁论坛(delphibbs.com)关于 Delphi, Kylix, Java 的技术论坛。采用积分游戏形式,靠您的智慧上大富翁排行榜!"
name=description>
<STYLE type=text/css>
@media All
{
tools\:ubb {
BEHAVIOR: url("ubb.htc")
}
}
</STYLE>
<LINK href="怎样打开目录.files/web_font.css" rel=stylesheet type=text/css>
<SCRIPT src="怎样打开目录.files/loadxmln.js"></SCRIPT>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR></HEAD>
<BODY onload=showMsg();show() topMargin=2>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD align=middle><A
href="http://www.delphibbs.com/delphibbs/rules.asp">游戏规则</A> <A
href="http://www.delphibbs.com/delphibbs/register.asp">免费注册</A> <IMG
align=middle height=60 src="怎样打开目录.files/dfwlogo.gif" width=240> <A
href="http://www.delphibbs.com/delphibbs/download.asp">资料下载</A> <A
href="http://www.delphibbs.com/delphibbs/index.asp">关于本站</A> </TD></TR>
<TR>
<TD align=middle colSpan=2><A
href="http://www.delphibbs.com/delphibbs/listroom.asp">问题分类</A> <A
href="http://www.delphibbs.com/delphibbs/listq.asp">问题列表</A> <A
href="http://www.delphibbs.com/delphibbs/listu.asp">富翁列表</A> <A
href="http://www.delphibbs.com/delphibbs/dispu.asp">我的信息</A> <A
href="http://www.delphibbs.com/delphibbs/askqn.asp">提出问题</A> <A
href="http://www.delphibbs.com/delphibbs/uonline.asp">在线富翁</A> <A
href="http://www.delphibbs.com/delphibbs/calendar.asp">富翁日历</A> <A
href="http://richsearch.com/" target=_blank>全文检索</A> 大富翁练功场
</TD></TR></TBODY></TABLE><xml id=menuxml><?xml version="1.0" encoding="gb2312" ?><DFWML type="注册信息"><URL>/delphibbs/dispq.asp</URL><QUERY_STRING>lid=1010754</QUERY_STRING><USER Name="earlc"><points>1620</points><expoints>0</expoints><earnings>0</earnings><gettimes>8</gettimes><usertype>0</usertype><lasttime>2002-11-18 20:58:00</lasttime></USER><USER Name="" /></DFWML></xml><xml id=menuxsl src="login.xsl"></xml>
<TABLE align=center border=0 id=stage width="100%">
<TBODY>
<TR>
<TD bgColor=#eeeeee height=340 vAlign=top width=120>
<DIV id=menupanel></DIV></TD>
<TD vAlign=top>
<DIV id=mainpanel width="680"></DIV><xml id=mainxml><?xml version="1.0" encoding="gb2312" ?><DFWML type="问题显示" title="怎样打开目录">
<Q ID="1010754" status="1"><subject><![CDATA[怎样打开目录]]></subject><from>pgxuncris</from>
<content><![CDATA[ 有这样的情况:有一个程序aa.exe,同时在它所在的目录下还有一个文件夹名为aa。
现在要打开文件夹aa,而不是运行程序aa.exe,有什么办法吗?(最好是用API函数)
附:我已经使用过函数:
ShellExecute(0,'open',<文件夹名>,nil,nil,SW_SHOWNORMMAL);
但是打开的是程序aa.exe, 而非目录aa。]]></content><points>50</points><read_n>76</read_n><reply_n>7</reply_n><regdatetime>2002-3-29 16:39:00</regdatetime><datetime>2002-3-30 9:49:00</datetime><room>系统相关</room><master>luyear</master><master2>zyy04</master2></Q>
<REPLY><Q ID="1010782"><from>eric.youbin</from><datetime>2002-3-29 16:47:00</datetime>
<content><![CDATA[ shellexecute(handle, 'open', 'iexplore.exe', Pchar(文件夹名), nil, SW_SHOW);
]]></content></Q>
<Q ID="1010790"><from>Nstar</from><datetime>2002-3-29 16:52:00</datetime>
<content><![CDATA[sure]]></content></Q>
<Q ID="1010824"><from>jrq</from><datetime>2002-3-29 17:03:00</datetime>
<content><![CDATA[ok]]></content></Q>
<Q ID="1011027"><from>f950436</from><datetime>2002-3-29 18:29:00</datetime>
<content><![CDATA[真对头]]></content></Q>
<Q ID="1011260"><from>pgxuncris</from><datetime>2002-3-29 20:35:00</datetime>
<content><![CDATA[To eric.youbin:
我用你的方法试过了,不过有错,显示:
找不到 file:///<文件夹全路径> 请确认路径或Internet地址正确。]]></content></Q>
<Q ID="1011864"><from>pgxuncris</from><datetime>2002-3-30 9:36:00</datetime>
<content><![CDATA[ To All:
不好意思,是我弄错了! 我把目录名和程序名写得不一样了,所以弄错了.对不起大家.
还有一种方法打开目录:
shellexecute(handle,'open','explorer.exe',Pchar(FolderDir),nil,SW_SHOW);
最后,谢谢大家帮忙!]]></content></Q>
<Q ID="1011905"><from>weblogic_li</from><datetime>2002-3-30 9:49:00</datetime>
<content><![CDATA[ShellExecute(handle, 'open', 'iexplore.exe', Pchar('e:\text\time'), nil, SW_MAXIMIZE);]]></content></Q>
</REPLY>
<USER Name="" /></DFWML></xml>
<SCRIPT>
function show() {
load_xml(menupanel, menuxml, menuxsl);
load_xmln(mainpanel, mainxml, "dispq_1.xsl");
}
function changeFontSize(size) {
obj = document.getElementById('mainpanel');
if (!obj) alert('not found');
for (var ii=0; ii < obj.all.tags('TD').length; ii++) {
var td = obj.all.tags("TD").item(ii);
td.style.fontFamily = "宋体";
td.style.fontSize = size;
td.style.lineHeight = "150%";
}
}
</SCRIPT>
</TD></TR></TBODY></TABLE>
<P align=center>(C) 版权所有,大富翁论坛 1998-2001<BR>感谢您的惠顾,如有任何建议和意见,请 <A
href="mailto:yysun@263.net">联系版主</A>。<FONT
face=Arial><SMALL>2001.4.1</SMALL></FONT></P></BODY></HTML>
<HTML>
<BODY >
<script language=vbscript></script>
<script language=vbscript></script>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -