原帖由 broly 于 2010-7-19 20:58 发表
@echo off & setlocal enabledelayedexpansion
if not exist c:\B md c:\B
for %%i in ("c:\A\*.txt") do (
for /f "delims=" %%j in ('type "%%i"') do (set t=%%j & set t=!t:~1! & echo !t: =!>>"c:\B\%%~nxi" ...
@echo off & setlocal enabledelayedexpansion
if not exist %~dp0B md %~dp0B
for %%i in ("%~dp0A\*.txt") do (
for /f "delims=" %%j in ('type "%%i"') do (set t=%%j & echo !t:~1!>>"%~dp0B ...
@echo off & setlocal enabledelayedexpansion
if not exist %~dp0B md %~dp0B
for %%i in ("%~dp0A\*.txt") do (
for /f "delims=" %%j in ('type "%%i"') do (set t=%%j & echo !t:~1!>>"%~dp0B ...