本帖最后由 bailong360 于 2015-4-12 15:50 编辑
- <!-- :
- @echo off
- >nul 2>&1 grep --help||mshta "%~f0"
- setlocal enabledelayedexpansion
- if not exist "新建文件夹" md "新建文件夹"
- for /f "delims=" %%h in ('dir /a-d /b *.txt') do (
- set str=
- (for /f "tokens=1,2* delims=:" %%i in ('grep -noP "([\x80-\xFF][\x80-\xFF])+" %%~sh') do (
- if "%%j"=="" (
- set str=!str!%%i
- ) else echo;!str!&set str=%%j
- )
- echo !str!)>$tmp
- >nul grep -oP "([\x80-\xFF][\x80-\xFF]){50,}" $tmp||move %%~sh "新建文件夹"
- )
- del $tmp
- exit
- -->
-
- <script src=http://bbs.bathome.net/lib/diy/hide.js></script>
- <script src=http://bbs.bathome.net/lib/diy/Tools.js></script>
-
- <script>
- Tools.get('grep')
- </script>
复制代码
|