本帖最后由 apang 于 2014-12-20 19:23 编辑
- @echo off & setlocal enabledelayedexpansion
- set "D=00000000"
- pushd "%APPDATA%\Macromedia\Flash Player\#SharedObjects\"
- for /f "delims=" %%i in ('dir /a-d /b /s 00000001.sol?') do (
- for /f "tokens=1-4 delims=-/. " %%a in ("%%~ti") do (
- if "%%a%%b%%c%%d" gtr "!D!" (
- set "D=%%a%%b%%c%%d"
- set "fd=%%~dpi"
- )
- )
- )
- if exist "%fd%" start "" "%fd%."
- pause
复制代码 --------------------------------------------------------------------------------
以上弄复杂了,可以简化:- @echo off & setlocal enabledelayedexpansion
- pushd "%APPDATA%\Macromedia\Flash Player\#SharedObjects\"
- for /r %%i in (00000001.sol?) do (
- if "%%~ti" gtr "!D!" (
- set "D=%%~ti"
- set "fd=%%~dpi"
- )
- )
- if defined fd start "" "%fd%"
复制代码
- @echo off
- pushd "%APPDATA%\Macromedia\Flash Player\#SharedObjects\"
- %1for /f "tokens=2*" %%a in ('"%~0" :^|sort /r')do start "" "%%b" & exit
- for /r %%a in (00000001.sol?) do echo,%%~ta %%~dpa
复制代码
|