Advertisement
Guest User

Untitled

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