|
Answer» Hi,
The next batch works fine in dos under 2000 or xp but I need it to run in plain dos so the FINDSTR command isn't available. Can someone help me to work around this one?
echo off cls
:BEGIN SET /p number=Enter Number : findstr /x %number% serial.txt if ERRORLEVEL 1 GOTO BEGIN if errorlevel 0 ECHO Number appears in serial.txt goto BEGINNot only is the FINDSTR utility not available, neither is set /p.
Code: [Select]echo off cls
find "%1" serial.txt if not errorlevel 1 ECHO Number appears in serial.txt
When you run your batch file pass the argument on the command line. FIND does not have a /x switch; closest was a case sensitive search.
How is this post related to your request for a C++ solution over on the programming board?
Because I need to change my HARDWARE ( the current palmtops are rather old and discontineoud). Most modern palmtops don't work well with dos or you need an emulator which in my experience work rather slow so if I can get this to work in c++ I can START searching for other compliant hardware.
|