Here is my batch sample code. What should I do if I would like to have an automatic "Enter" key once an input is detected (using scanner or keyboard input)? Set the Enter at the scanner is not possible since we need to follow the format on many applications that we are currently in use.
cls
set order=none
set /p order= Scan order number: **[How to add auto ENTER key here]**
for /f "tokens=2,4 delims=|~" %%a in ("%order%") do set code=%%a-%%b
@echo %code% >> "C:\Record.txt"
echo Records are saved.