Originally Posted by JeeperDon
I am trying to totaly automate a simple database manipulation. If I invoke dbase then enter 'DO WHATIWANT' it runs fine, even with the QUIT at the end closing dbase. To take it the last step, I am trying to find out how to make DBASE III Plus automatically run a pgm file from the DOS line. I know I can use DBASE WHATIWANT to run the .pgm file, but it always stops at the initial opening of DBASE and says "press enter to assend to the license agreement and start DBASE". If I press enter before it times out in 5 seconds or so, the .pgm file runs normally. If I start DBASE with no 'filename' added, it starts without the license problem and goes straight to command mode as expected.
I am assuming there is a command line parm I can add with the filename to fix this. Can someone point me to the DOS line syntax of DBASE? Additionally, can someone tell me how to eliminate the license prompt in that mode? If it matters, there is nothing in CONFIG.DB other than the 'STATUS=ON' line.
It's been a while since I haven't programed in dbase III plus. If I remember correctly, after you completed your commands and save it as for example "mydbase.prg" you can create an autoexecbat in DOS by executing a dos command 'Edit". for example you call your DOS program as 'myprogram" you would type from C prompt c:>edit myprogram.bat
then on the blank screen, write your text batch command as
save it and exit from Edit DOS mode.
when you are back in C:> prompt, you can just type myprogram <ENTER> and your program should run straight like you wanted to
DO you know that FOXPro 2.1 can be programed similarly as dBase III. With Foxpro 2.1 you can compile the commands to create an executable program.
As a matter of fact, I still have one program still being used at an hospital to keep track of linen usage, still running almost for 10 years.
I don't normally throw away my source development, if I stumbled across dbase III programs I wrote, I will get back with you with more accurate information.