Done Have ESET modify Variable to corresponding type

Code:
     _x64: 1
   _admin: 1
_elevated: 1

TCC  26.00.19 x64   Windows 10 [Version 10.0.18362.657]
BuildNumber  Caption                   CSDVersion  OSArchitecture  Version
18362        Microsoft Windows 10 Pro              64-bit          10.0.18362

Consider the following;

Code:
e:\utils>set /t:2 test=0.0

e:\utils>echo %test
0.0

e:\utils>echo %@vartype[test]
2

e:\utils>INPUT /E /K"[0-9]." /L6 Enter something%@repeat[ ,2]``%%test
Enter something 140.97

e:\utils>echo %test
140.97

e:\utils>eset test
test=This is a test

e:\utils>echo %test
140.97

Per my example above, I was able to use ESET to modify a decimal variable type. While ESET recognized that it was a decimal variable type, it still allowed me to modify the variable using text, but ignored my changes, which is correct.

Therefore, could ESET be modified to only allow modification to the variable with only that type?

Joe
 
Aug 23, 2010
610
8
Code:
SET /T:2 XT=0.2
ECHO "%[XT]" / %@VARTYPE[XT] / %ERRORLEVEL% %? %_?
> "0.2" / 2 / 0 0 0
INPUT /E /K"[0-9]." /L6 Enter something: %%XT
> Enter something:14.3
ECHO "%[XT]" / %@VARTYPE[XT] / %ERRORLEVEL% %? %_?
> "14.3" / 2 / 0 0 0
ESET XT
> XT=Sotest!
ECHO "%[XT]" / %@VARTYPE[XT] / %ERRORLEVEL% %? %_?
> "14.3" / 2 / 0 0 2
 
Thread starter Similar threads Forum Replies Date
V Suggestions 3
WinLanEm Suggestions 4
S Suggestions 0