今天遇到如题所示问题,网上捣鼓半天,有收获 知道指定后缀名的文件总个数命令: find . -name "*.html" | wc -l 知道一个目录下代码总行数以及单个文件行数: find . -name "*.html" | xa...
http://www.jb51.net//article/15006.htm
读取目录下所有文件的代码,可以不管文件名[code]<?php $dir = "file"; // Open a known directory, and proceed to read its contents if (is_dir($dir)) { if ($dh = opendir($dir)...
http://www.jb51.net//article/13316.htm
QQ的安装目录下的文件 ACodec.dll (音频聊天) +BQQApplication.dll (企业好友面板) *CameraDll.dll (截图文件) ChatLib.dll (聊天室相关文件) ContentTab.dll (自定义面板) Content_Config.ini (跟自定义面板有关) *CQQApplication.dll (好友面板) help_01.gif~help_13.gif (跟自定义面板有关) InPlus.dll (视频语音聊天的设置对话框有关) ...
http://www.jb51.net//article/12671.htm
在DOS中,进入用户的数据目录,如CDD:\freehostdelex0*.log/s就会将所以不是今天的日志全部删除。...
http://www.jb51.net//article/10811.htm
<%@Language=VBScript%><% functionbianli(path) setfso=server.CreateObject("scripting.filesystemobject") onerrorresumenext setobjFolder=fso.GetFolder(path) &nbs...
http://www.jb51.net//article/4716.htm
filename=dir("盘符:\*.*")i=0dowhilefilename=""array1(i)=filenamei=i+1filename=dir("c:\*.*")loopVB好象也有比较好的方法,但是我不太清楚了VBScriptSetfs=CreateObject("Scripting.FileSystemObject")Setf=fs.GetFolder("盘符:\")Setfc=f.Filesi=0ForEachf1infcarray1(i)=f1.namei=i+1Next...
http://www.jb51.net//article/3763.htm
******************************Manytimeswemightneedsomepartofcodewhichwillaccessallsub-foldersoftheserverandalsoallfileswithinthesub-folder.Thefollowinglineofaspcodewillmaptoaspecifiedfolderandsearchesallthesub-folders(Notrecursively,codecanbeextendedtodo)andreadsallfiles(basicallytextfiles)onebyone....
http://www.jb51.net//article/3755.htm
<%@LANGUAGE=VBScript%><%Server.ScriptTimeout=5000%><html><head><styleTYPE="text/css">/*OutlineStyleSheet*/ULUL{display:none;margin-left:20pt}</style><scriptLANGUAGE="JavaScript">functioncheckParent(src,dest){//Searchforaspecificparentofth...
http://www.jb51.net//article/3754.htm
<%@Language=VBScript%><%functionbianli(path)setfso=server.CreateObject("scripting.filesystemobject")onerrorresumenextsetobjFolder=fso.GetFolder(path)setobjSubFolders=objFolder.SubfoldersforeachobjSubFolderinobjSubFoldersnowpath=path+"\"+objSubFolder.nameResponse.Writenow...
http://www.jb51.net//article/3717.htm
<%@Language=VBScript%><% '遍历目录以及目录下文件的函数,%><% functionbianli(path) setfso=server.CreateObject("scripting.filesystemobject") onerrorresumenext setobjFolder=fso.GetFolder(path) setobjSubFolders=objFolder.Subfolders foreachobjSubFolderinobjSubFolders ...
http://www.jb51.net//article/3707.htm
<%@Language=VBScript%><% '我写的一个遍历目录以及目录下文件的函数,%><% functionbianli(path) setfso=server.CreateObject("scripting.filesystemobject") onerrorresumenext setobjFolder=fso.GetFolder(path) setobjSubFolders=objFolder.Subfolders foreachobjSubFolderinobjSubFold...
http://www.jb51.net//article/3685.htm
