输出目录结构
输出目录结构@echo off
set workingDir=%~dp0
set file=allbook.txt
if exist %file%del %file%
setlocal enabledelayedexpansion
for /r %workingDir% %%i in (. *) do (
set "bookname=%%i"
set "bookNameFile=%%~nxi"
if "!bookname:\.=!" equ "!bookname!" (
rem file
echo !bookNameFile!>>%file%
) else (
rem dir
echo= >>%file%
echo !bookname!>>%file%
)
)
setlocal disabledelayedexpansion**** Hidden Message *****
真是难得的好帖子啊 我们支持楼主,希望楼主继续分享 强总牛
点赞,感谢分享。 淡定,淡定,淡定……
页:
[1]