So I am the process of creating my first batch file and I am convinced that there is a better way. It seems I can accomplish what I want but from all the conventions I have read it seems sloppy.
@echo off
set /p xyzCode= Please enter the code.
set x=0001
set xyz=0002
set xyza=0003
if %xyzCode% ==x echo %x%
Problem is I would need about 600 variables, 600 if statements.
Where I work a product has two unique identifiers a code, and a materiel identifier,
I want to be able to quickly type in a code and get the materiel identifier.
If I were using Python I think the answer would be use dicts but need a way to do this in batch scripting.