Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off & setlocal enabledelayedexpansion & title <nul & title Q383667
- set /a "_cnt=0" & set "_cmd=wmic OS Get localdatetime /value" & cd /d . & rem < substituir o "." (ponto) >
- for /f ^tokens^=^2delims^=^= %%i in ('!_cmd! ^|findstr /r [0-9]')do set "_hj=%%i" & call set "_hj=!_hj:~0,8!
- for /f ^tokens^=*delims^=^ ^ %%i in ('where .:"!_hj!_*.txt"')do set /a "_cnt+=1" & call set "_hj_!_cnt!=%%i")
- echo/ & for /l %%l in (1 1 !_cnt!)do echo/ Arquivo 00%%l: !_hj_%%l! & echo/
- echo/ Total de 00!_cnt! encontrados^!! & echo/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement