I am looking into an issue regarding a command I've recently run into an issue with.
The command I'm referring to is the following...
set %num%=%string:~%num%,1%
[Goal]:My goal with this command is to take a string, skip "num" digits, take that single digit in the string, and then be labeled the variable "num."
[Question]:What is the issue with my syntax/What should I do know?
Below is the full program, unnecessary assets removed. [The call command early on calls a short function which counts the characters and returns a number.]
@echo off
set /p string=
call :strlen result string
set /a num=0
:re2
::============================Problem Command
set %num%=%string:~%num%,1%
set /a temp=%num%
set temp2=%num%
:re3
if %%%temp%%%==%%%temp2%%% goto win
if %temp%==0 goto re4
set /a temp=%temp%-1
goto re3
:re4
set /a num=%num%+1
goto re2
:win
::...