ttbs123 当前离线
列兵
set "pic_dir=E:\pic\" for /f %%i in ('dir /s /b %pic_dir%') do ( echo %%~ti set str_data=%%~ti echo %str_data% )复制代码
回复 ttbs123 canyuexiaolang 发表于 2012-8-18 20:18
TOP
canyuexiaolang (vebjbr2wq)当前离线
荣誉版主
@echo off set /p a=数字: if %a% lss 0 set /a a=-a echo %a% pause复制代码
回复 ttbs123 好吧= = canyuexiaolang 发表于 2012-8-18 18:46
@echo off & setlocal enabledelayedexpansion set "pic_dir=E:\pic" for /f %%i in ('dir /s /b "%pic_dir%"') do ( set str_data=%%~ti echo !str_data:~-2! ) pause复制代码
请论坛搜索 变量延迟 或许详解 canyuexiaolang 发表于 2012-8-18 18:32
@echo off & setlocal enabledelayedexpansion set "pic_dir=E:\pic\" for /f %%i in ('dir /s /b %pic_dir%') do ( echo %%~ti set str_data=%%~ti echo !str_data! )复制代码
评分人数