速度很慢:- @echo off
- (for /f "delims=" %%a in ('dir /s/b/a-d "d:\123"') do (
- set a=%%a
- setlocal enabledelayedexpansion
- set/p=!a! <nul
- for /f "tokens=2 delims==+" %%b in ('wmic datafile where name^="!a:\=\\!" get CreationDate/value') do echo %%b
- Endlocal
- ))>创建.txt
复制代码 或:- @echo off
- (for /f "delims=" %%a in ('dir /s/b/a-d "d:\123"') do (
- set a=%%a
- setlocal enabledelayedexpansion
- set/p=!a! <nul
- for /f "tokens=2 delims==." %%b in ('wmic datafile where name^="!a:\=\\!" get CreationDate/value') do echo %%b
- Endlocal
- ))>创建.txt
复制代码
[ 本帖最后由 hanyeguxing 于 2011-1-6 22:33 编辑 ] |