Hello,
I have to take over a large, multi-language, software whose information
flow control is done via dos scripts : the code is made of dozens of
fortran files that are executed according to a complex dos-made menu
system.
My problem thus far is to identify what is called when a choice from a
menu is made.
Choosing an item is done simply by pressing a single key (no "Return")
which calls up either the required program or another menu etc ...
This program has been written by several people at different times over
the last 30 years and so do***entation is severely outdated.
So, to play with it I have to know what goes on behind these menus. To
do this my idea is to create some kind of log (real-time or not) that
record both the key pressed and what is done by that action. I already
have modified the fortran so it prints something out whenever such or
such part is called, but I need to add - before the fortran is called -
what key is pressed. So I need to be able to open a file and print the
alphanumeric symbol corresponding to the key pressed, and then the
fortran - or next menu - is called. If another menu shows up it also
needs to update the log file.
Basically that's it. Very simple but I have not found very explicit help
on the matter. The dos scripts are obscure at best and the info is held
within variables.
The one thing I had rather not do it delve into DOS technicalities since
once I get this logging system done I am going to drop dos altogether
(change of OS - company policy). So I only need this little thing - I
think, so far anyway.
Thank you, any help welcome!
G.T.


|