Created batch file:
@Echo off&SetLocal EnableExtensions EnableDelayedExpansion
set execute counter=0
Set "Pass=45454545854545854254545454"
Echo Password is:%Pass%
start "" https://xxx.xxx/xxx/%pass%
:test
set "Pass=%Pass%"
set "Pass=!Pass:~1,-1!
echo Password is :%Pass%
start "" https://xxx.xxx/xxx/%pass%
goto test
Requirements: I want to open URL with given %pass% string, on each loop I want to strip the last character from string until one character will remain for URL.
Example:
1st url : https://xxx.xxx/xxx/45454545854545854254545454
2nd url : https://xxx.xxx/xxx/4545454585454585425454545
.......
last url : https://xxx.xxx/xxx/4
set "Pass=%Pass%"is useless. Also,set "Pass=!Pass:~1,-1!will remove first and last number/character.echoinstead ofeacho.