I'm writing a PB6.5 application that will run from the command line(DOS prompt). If the user does not enter the proper(required) parameters I want to send a message back to the screen so the user can see what the proper syntax is.
The only way I've been able to do this is by:
I'm using the Run() function in PB and passing to it the name of a batch file. This batch file includes the following:
type usage.txt
The usage.txt file includes the proper syntax for my application. The method descibed above does work, but I have questions.
When it displays the contents of usage.txt, it displays it in a second dos window. How can I display this file in the same dos window as the one where I executed my application?
Is there another method to accomplish writing out to the screen?
Keith
The only way I've been able to do this is by:
I'm using the Run() function in PB and passing to it the name of a batch file. This batch file includes the following:
type usage.txt
The usage.txt file includes the proper syntax for my application. The method descibed above does work, but I have questions.
When it displays the contents of usage.txt, it displays it in a second dos window. How can I display this file in the same dos window as the one where I executed my application?
Is there another method to accomplish writing out to the screen?
Keith