StudyNotes
EnjoyGet
电子产品测试开发
展开
-
Batch file get string length study notes
@echo offsetlocal enabledelayedexpansionset str=%1set /a x=0call :StrLenendlocalgoto :eof:StrLenif not "!str:~%x%,1!" == "" set /a x+=1 & goto StrLenecho StringLenth=%x%goto :eof原创 2018-06-17 16:05:51 · 177 阅读 · 0 评论 -
Batch file get month list study notes
useage: Get_MonthList.bat %NowMonth% %Num%The %NowMonth% is the latest year and month, and the %Num% defines how many months need to listSee code:@echo off & setlocal enabledelayedexpansion set nu...原创 2018-06-17 16:50:20 · 114 阅读 · 0 评论