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 有关职位

One Response to “Create HTML table listing of Windows directories and files” 一个响应“创建HTML表列出的Windows目录和文件”

  1. dan said on : 丹说:

    Have you ever found a tool that might do this “on the fly”?你有没有发现一个工具,可以这样做“对飞” ? The goal - to create a website where customers go to download files; each day the engineer might drop a new file into a windows directory and would not want to update the html each time to make it downloadable?目标-建立一个网站,客户去下载文件;每一天工程师可能下降一个新的文件到W indows目录,也不会要更新的h tml每次都让下载?


    Please post your comments/suggestions! 请张贴您的意见/建议!