FSO的强大功能(2)



</style> 
</HEAD> 
<BODY onselectstart="vbs:selectControl" onkeydown="vbs:shortCut"> 
<div id="frmTree" onclick="vbs:f_Click" onkeydown="vbs:deletFile" > 
<span id="tab1" >  目 录 </span> 
<span id="tab2" onclick="vbs:showMe frmSeach,frmTree">  搜 索 </span> 
<hr/> 
<div id="tree" style='margin-left:0;color:navy;font-size:12;cursor:hand;' ></div> 
</div> 
<div id="frmSeach" onclick="vbs:f_Click" > 
<span id="tab3" onclick="vbs:showMe frmTree,frmSeach" >  目 录 </span> 
<span id="tab4">  搜 索 </span> 
<hr/> 
<div id="list" style='margin-left:0' onkeydown="deletFile"> 
<input id="searchKey" style="width:100"/> 
<button onclick="vbs:seachFile" id="searchButton">查找</button><br/> 
<div id="seachList" style='margin-left:0' >搜索结果</div> 
</div> 
</div> 
<input type="button" id="hide_control" onmousedown="vbs:beginDrag" onmouseup="vbs:upHandler" bgcolor="#eeeeee"/> 
<div valign="top" id="txtFrm"> 
标题:<input id="articleTitle" style="width:100" readonly/> 
<button id="browse" onclick="vbs:browseMe" >预览</button> 
<button id="saveButton" onclick="vbs:saveFile" >保存</button> 
<button id="browse" onclick="vbs:createFile" >新建</button> 
<button id="test" onclick="vbs:showHelp">说明</button> 
行 <span id="Ln">1</span> 
<textarea id="txt" onkeydown='vbs:TabTxt' onclick="vbs:showLn"></textarea> 
</div> 

<SCRIPT LANGUAGE="vbscript"> 
'************************** 
'*****超级大笨狼*********** 
'************************** 
on error resume next 
window.resizeTo window.screen.availWidth,window.screen.availHeight 
window.moveTo 0,0 
Set fso = CreateObject("Scripting.FileSystemObject") 
dim thisFileDir'定义本文件绝对路径 
dim thisFileName'定义本文件名 
dim thisFileFolder'定义本文件夹路径 

thisFileDir = replace(window.location.href,"file:///","") 
thisFileDir = unescape(replace(thisFileDir,"/","\")) 
thisFileName = LastOne(thisFileDir,"\") 
thisFileFolder=getFolderDir(thisFileDir) 

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/3190.html