Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dbase III+ Open with a command HELP!!

Status
Not open for further replies.

kiki13

Technical User
Feb 10, 2003
5
US
I am new to working with dbase III plus. I have written a .prg file and I can open dbase, and use a do command line to run the program. (with no problems)

I am wondering if there is a way to combine these 2 steps into one line on the dos prompt. In other words, launch dbase and run a command using a 1 line command from dos.

Any suggestions would be greatly appreciated!!

Thanks!
 
The DOS command would be:
dbase MYPROG

where MYPROG is the name of the .prg program file you want to autostart.

As an alternative, if you want dbase (in this location) to always start the same .PRG, in your config.db file, add a line:
COMMAND=DO MYPROG

where MYPROG is the name of the .prg program file you want to autostart.

Either of these will work.

hth,
Dennis [glasses]
 
Assuming you start your dBase program with "dbase" and the program is named "myprog.prg" then this should work:

dbase myprog

To send in a parameter just it it on afterwards. I would recommend that you enclose the keypress sequences with either single quote or square brackets since DOS can remove double quotes in certain cases.

dbase myprog [ABC.DBF]

If you need to programatically have the program do something unattended then the simple example below will start the program and then automatically execute the F10 keypress. Just be sure your SET KEYBOARD length is long enough to handle any incoming string.

dbase myprog [{F10}]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top