|
Answer» Hi,
Recently, DUE to hardware changes, I can't USE my dos batch file anymore. The only solution is to transcode the batchfile into another platform such as c++ but I don't know that language. It's a short batch, used to search through a txt file and notify if the entered value is actually in the file. Is someone willing to translate it or having another solution ? Thx
++++++++++++++++++++++++++++++++++++++++++++++++++ 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 BEGIN ++++++++++++++++++++++++++++++++++++++++++++++++++Hi, without knowing which OS you have it is hard to know which flavor of C++ should be used.
If your are using Linux, you should post on the Linux forum.
If that is all you need, C++ is a BIT of overkill If you have another option I'm listening. The goal is to make a program similar to the one on top that works on newer hardware (palm / pda / blackberry ... whatever will do the job). Most of those new gadgets don't work well using dos.OK, now I see whet you mean. Some of the new hand-held gadgets use embedded Linux, but if there is no shell you can't do much. So the word on the street is you program in java if at all possible. The is a lot of support for java and it is cross-platform. You can get better performance with C++ at the expensive maybe of less peer support. And some say try JavaScript. Then there are those who say write it in C.
|