Your technology certification is waiting. Enroll in Cloud Class ®
This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.
::EXCOPY.BAT - Written by t0t0
for /f "tokens=*" %%a in ('dir /a-d /b %4 %3') do (
if not "%%~nxa"=="%~nx0" (
set /a count=0
for /f "tokens=* delims=" %%b in ('findstr /i /v /n "th15_text_d0e5_n0t_ex15t" "%%a"') do (
set /a count+=1
if !count! lss 10 (set line=!line:~2!) else (
if !count! lss 100 (set line=!line:~3!) else (
if !count! lss 1000 (set line=!line:~4!) else (
if !count! lss 10000 (set line=!line:~5!) else (
if !count! lss 100000 (set line=!line:~6!)))))
if "!line!"=="" (
) else (
ren "%%~dpnxa" "%%~na.$av"
ren "%%~dpa_%%~na.tmp" "%%~nxa"
Open in new window
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.