Well there is a challenge one doesn't hear ever day :-) QBasic...
I don't know if you can redirect the input (possibly) but a couple of
options come to mind. One is to contact the folks here:
http://www.qbasic.com/. The other is to add a few lines of code to the QB
program to accepts the inputs on the command line and to comment out the
spot where it currently requests input. You should be able to run the
program from your dotnet program and supply the values it wants on the
command line.
One other thing you could do with reasonably few changes is have the the QB
program read a text file to obtain the answers it needs (there are only 3
inputs.) The dotnet program would generate the "inputs.txt " file and run
the QB program which would read that file instead of prompting for the
answers.
In any case you might check with folks at that website.
Tom
"Danielle" <wx****@aol.com wrote in message
news:11******** *************@v 45g2000cwv.goog legroups.com...
All -
I was asked to work on a project converting some weather data. The
program used to convert the data is written in Quick Basic. I am only a
novice programmer and while I can see from the .BAS file what is
happening, I don't have the time bandwidth to rewrite the program in VB
.NET and I'm not sure it would do a proper conversion even if I did.
The compiled QB program asks for three inputs... 1) source file
location (string), 2) interval for averaging (int) and 3) output
location (string).
My question for anyone with Quick Basic experience is this - is there a
way to 'fake' this user input so that I could call the old QB program
from and 'pass' the input parameters programmaticall y such that the QB
program will think I'm manually responding to the prompts??
Many thanks in advance -
Danielle