qBasic or vbDOS shelling and logging question...
Posted: Sat Jun 09, 2012 5:35 pm
To whom it concerns,
I want to create a program that opens my program, rdmath.exe and then inputs multiple alphanumeric codes in the format xxxx-xxxx-xxxx-xxxx into rdmath.exe.
After it inputs the code it should send the enter command into the program twice. It also needs to log everything it is doing in log file, such as, RDMATH.TXT or RDMATH.LOG.
I have both QBasic and VBDos to compile the program in. My problem is this, I think (it's has been like 12 years since I programmed in QBasic) I run the rdmath.exe program, like this:
SHELL "RDMATH.EXE"
However that's as far as my knowledge goes with shelling. Not sure how to get it take the random alphanumeric code and place it into the program prompt.
Thanks,
Riley
I want to create a program that opens my program, rdmath.exe and then inputs multiple alphanumeric codes in the format xxxx-xxxx-xxxx-xxxx into rdmath.exe.
After it inputs the code it should send the enter command into the program twice. It also needs to log everything it is doing in log file, such as, RDMATH.TXT or RDMATH.LOG.
I have both QBasic and VBDos to compile the program in. My problem is this, I think (it's has been like 12 years since I programmed in QBasic) I run the rdmath.exe program, like this:
SHELL "RDMATH.EXE"
However that's as far as my knowledge goes with shelling. Not sure how to get it take the random alphanumeric code and place it into the program prompt.
Thanks,
Riley