其实是chrome的收藏夹文件,原理是检测下一行是否含有 type folder,如果有就不显示上面一行,这个程序有时会跑几百次循环就跳出,有时跑几次就跳出,大侠这到底是为什么呢- :yy
- set a=0
- set j=0
- set k=0
- :aa
- set /a j=j+1
- @for /f "skip=%j% delims=" %%i in (b_1) do set a=%%i & goto bb
- :bb
- set /a j=j+1
- @for /f "skip=%j% delims=" %%j in (b_1) do set k=%%j & goto cc
- :cc
- @if "%k%"==" "type": "folder" " (echo %a% >>b2.txt goto aa) else (echo %a% >>b2.txt & echo %k% >>b2.txt & goto aa)
复制代码
|