using system;
using system.collections.generic;
using system.collections;
using system.text;
using system.io;
namespace bainli
}public arraylist getfilename
}public void listall(directoryinfo source)
foreach (directoryinfo childinfo in source.getdirectories())
}public void filelist(string sourcedirectory)
}static void main(string args)}}
遍歷磁碟資訊
h pragmaonce include include usingstd list typedefstruct drive info storage info drive info,pdrive info classcdiskcontrol cpp include diskcontrol.h cd...
python遍歷本地檔案系統 按檔案大小排序
在這個例子中,主要會用到python內建的和os模組的幾個函式 os.walk 該方法用來遍歷指定的檔案目錄,返回乙個三元tuple dirpath,dirnames,filenames 其中dirpath為當前目錄路徑,dirnames為當前路徑下的資料夾,filenames為當前路徑下的檔案 o...
delphi將本機共享資料夾 磁碟設為共享的辦法
uses registry var myreg tregistry 以下為登錄檔修改 myreg tregistry.create myreg.rootkey hkey local machine myreg.openkey software microsoft windows currentver...