What I have is approximately 9000 binary files in the bin_to_txt folder. The vi opens the dos application (BBlist.exe) and sends each of the 9000 file names to the dos application in sequence by sending keyboard strokes.
For example, if you were to manually open the BBList program the first thing it asks for is the file name. Therefore, the vi enters the file name one letter at a time as if you were doing so from the keyboard. The outer loop runs once for every file, the inner loop runs once for every keyboard stroke.
1. To test the program put BBLIST in your root folder c:
2. Make a dummy folder called bin_to_text in your root folder c:\bin_to_text\
3. Save a text file of any name you like and put it in the bin_to_text folder
4. Run the VI.
The VI should open BBList but nothing else will happen. If it were to work as intended you would see the text file name in the input field.
The way the vi works is by passing keystrokes to the active application which is the BBList at the time. To check if the keystrokes are working just maximise a text document right after BBlist opens. The text document will be the active application and you will see the name of the text file you created typed out.
Thanks for the reply, I didn't think this would get any attention.