lyfwcn 当前离线
列兵
pcl_test 当前离线
荣誉版主
powershell -c "gc '文本.txt'|sort {$_.split('/')[-1]}" pause复制代码
TOP
@echo off %1(for /f "tokens=1*delims=|" %%i in ('"%~f0" :^|sort') do echo;%%j) >>bb.txt& pause & exit /b for /f "delims=" %%a in (1.txt) do echo;%%~na^|%%~a 复制代码
@echo off %1(for /f "tokens=1*delims=|" %%i in ('"%~f0" :^|sort') do echo;%%j)& pause & exit /b for /f "delims=" %%a in (1.txt) do echo;%%~na^|%%~a复制代码
评分人数
回家路上 发表于 2016-1-7 10:53
回家路上 当前离线
少尉
@echo off & setlocal enabledelayedexpansion %1(for /f "tokens=1*delims=$" %%i in ('"%~f0" :^|sort') do echo;%%j)& pause & exit /b for /f "delims=" %%a in (1.txt) do ( set line=%%a set line=!line:/=.! for /f "delims=" %%i in ("!line!") do echo;%%~xi$%%a )复制代码
flyinnet9 当前离线