Create HTML table listing of Windows directories and files創建HTML表列出的Windows目錄和文件

Posted on October 4, 2008 at 5:34 am發布於2008年10月四日在上午05點34

Ever need to create an HTML file that lists all the files and folders in a particular Windows directory ?以往任何時候都需要建立一個HTML文件列出所有文件和文件夾在一個特定的Windows目錄 Probably not something you’ll need to do very often, but it does come in handy every once in a while.也許不是您需要做很多,但它確實派上用場每一次了。

For example, if you want to quickly create a list of all files and folders inside of a Window directory and send it to someone in a nice easy to view format.例如,如果您想迅速建立一個名單,所有文件和文件夾內的窗口目錄,並將其發送給某人很好易於查看的格式。 Earlier I had written about a program called Karen’s Directory Printer, a free program that早些時候我寫了一個叫卡倫目錄印表機,免費程序 prints a list of all files and folders in a Windows directory打印清單的所有文件和文件夾在Windows目錄 . However, it only allows you to save the list as a text file.然而,它不僅可以讓您保存清單作為一個文本文件。

DirHTML DirHTML is a nifty program that pretty much does the same thing, generates a recursive list of files and folders, but outputs it as an HTML table with links!是一個漂亮的程序,非常不一樣,產生一個遞歸的文件列表和文件夾,但它的產出作為一個HTML表的鏈接! So you can actually open the file and click on any file to open the file in the web browser.所以,你實際上可以打開該文件,並點擊任何文件打開該文件在網絡瀏覽器。 Convenient for web developers possibly.方便的網頁開發人員可能。

Here’s what a directory listing outputted in HTML looks like for a folder on my computer:以下是目錄列表的HTML輸出看起來像一個文件夾在我的電腦上:

directory listing html table

Across the top are anchors, which are basically links to all of the folders inside the directory you specified.整個頂端的錨,這基本上是聯繫所有文件夾內您所指定的目錄。 After that, all files within the root folder and within each folder under the root is listed along with basic file attributes.在此之後,所有的檔案的根文件夾,並在每個文件夾下的根,同時列有基本的檔案屬性。 You can click on any of the files and it’ll try to open them in the browser window.您可以點擊任何文件,它會嘗試打開它們在瀏覽器窗口。

Once you download the program, simply run the dirhtml.exe file and you’ll get a configuration window like this:一旦您下載該程序,只需運行dirhtml.exe文件和您將獲得一個配置窗口這樣的:

create directory listing

The program is highly configurable, but you can also just choose the folder and click the Build button if you don’t want to do anything else.此計劃是高度可配置的,但您也可以選擇剛才的文件夾,然後按一下按鈕,生成如果你不想做別的。 You can filter based on file extension (File Specification) or by file names.您可以篩選的基礎上文件擴展名(文件規格)或檔案名稱。

Under Miscellaneous , you can specify the file attributes you want to include in the HTML output and also specify if you want to use fully qualified paths in the links. 項,您可以指定檔案屬性要包括在HTML輸出,並指定是否要使用完全合格的路徑中的鏈接。 This is useful because if you want to be able to transfer the file to another computer, you can also copy the folder to the other computer under the same path, ie C:\My Documents\Test and be open to click on the files to open them.這是非常有用的,因為如果你希望能夠轉讓的文件到另一台計算機上,您也可以複製文件夾到其他計算機在同一路徑,即ç : \我的文檔\試驗和開放,按一下檔案打開它們。

print directory listing

Under Sorting , you can choose to sort the files by Filename, Size, Date, and Extension.根據排序 ,您可以選擇排序文件的文件名,大小,日期和延期。

sort files

You can also configure the program to build the directory listing recursively or not.您也可以設定的程序,以建立目錄清單或不遞歸。 You can choose whether you want all links in one HTML file or to create an HTML file for each separate folder.您可以選擇是否要在各個環節一個HTML文件或創建一個HTML文件中的每個單獨的文件夾。

html directory listing

Overall, it’sa useful program to quickly create HTML files for any folder branch in Windows.總的來說,這是一個有用的程序快速創建HTML文件的任何文件夾在Windows分行。 Enjoy!享受!

Enjoyed this post?得到這個職位? Subscribe to Online Tech Tips via訂閱在線應用技巧通過 RSS Feed RSS供稿 or via或通過 Email電子郵件 and receive free daily productivity tips.並獲得免費日報的生產力秘訣。

» Filed Under »文章屬於 Free Software Downloads免費軟件下載

添加到美味 Save this page 保存該網頁 它Mixx Stir it up on Mixx 它攪動了Mixx
Reddit Add to Reddit 添加到Reddit StumbleUpon公司 Stumble this page 失敗此頁

Related Posts 有關職位

Please post your comments/suggestions! 請張貼您的意見/建議!