我正在尝试创建一个批处理文件,该文件将更改一些输入文本并将它们更改为 , 等的对应数字a=1
,b=2
例如c=3
:
@echo off
set /p text=
echo :: %text% ::
echo Is this the expected text? //user can manually typo check
pause
cls
for /f delims=: %%i in ("%text%") do (
[something that changes the letters into numbers & store in variable]
)
::do stuff to numbers