Search found 1 match

by PlateauRealm
21 Aug 2021 17:00
Forum: DOS Batch Forum
Topic: If statement variable problem
Replies: 1
Views: 2194

If statement variable problem

I'm a little baffled by this batch code here. I have similar code structure before and outside of a conditional 'if' statement, but the rand2 value inside the conditional is always seen as a zero value in the 'set hexa2=!HEXA:~%rand2%,2!' line. @echo off cls SETLOCAL ENABLEDELAYEDEXPANSION set HEXA=...