>dir *.sh *.ksh *.java /s/b > list.txt
>tree /f > list.txt
>xcopy C:folderfrom_folder C:forder o_folder /e /EXCLUDE:c: ocopy.txt /y
(1)EXCLUDE的用法
例如,我要将"C:folderfrom_folder"目录备份一份到"C:folder o_folder_bak",但要排除其下面的
"C:folderfrom_folderfolder2folder3"子目录.
步骤一,新建一个文本文件叫"nocopy.txt",内容如下(横线以内):
----------------------------------------
folder2folder3
----------------------------------------
步骤二,命令(包含子目录,不提示覆盖):
xcopy C:folderfrom_folder C:forder o_folder /e /EXCLUDE:c:
ocopy.txt /y
/e:包含子目录
/y:不提示是否覆盖,直接覆盖
(2)如果窗口显示不全,调整BufferSize
(3)如果制表符显示不正确,使用:Consolas字体(在Excel等编辑器里)
【例】axis2-1.7.7-war的tree目录结构
├───axis2-web
│ │ error.jsp
│ │ HappyAxis.jsp
│ │ index.jsp
│ │ MainFrame.jsp
│ │
│ ├───css
│ │ axis-style.css
│ │
│ ├───Error
│ │ AuthError.html
│ │ error404.jsp
│ │ error500.jsp
│ │ GenError.html
│ │
│ └───images
│ asf-logo.gif
│ axis.gif
│ axis.jpg
│ axis_l.jpg
│下略……