Search found 2 matches

by kid
08 Jun 2023 10:10
Forum: DOS Batch Forum
Topic: count characters of a input string in batch file
Replies: 4
Views: 6043

count characters of a input string in batch file

Hi, I want to write a batch script that can count uppercase and lowercase characaters and digits and special characaters of input string for example if I enter this: 7f(92_/%67G46sMg_<2kkDgit4_+^H!aYCe=_-wQW4S=taMnGBDQLGx(F>^>(SFob@eUxFH0-2#yAJK/i!Q=BiWJ@z/4KKwNF#T= it will show me this: upper : 34 ...
by kid
03 Jun 2023 12:07
Forum: DOS Batch Forum
Topic: Batch file to show count of different filetypes in a folder
Replies: 17
Views: 23943

Re: Batch file to show count of different filetypes in a folder

hi, I'm a new member, can anyone explain this code to me line by line in a way that I can understand it completely please:

Code: Select all

@echo off
setlocal
for /f "delims=" %%f in ('dir /b/a-d "%cd%"') do set /a %%~xf=%%~xf +1
set .
pause