ID: Q95714
The information in this article applies to:
You can invoke commands at startup by using the COMMAND= line in the CONFIG.FP file. However, FoxPro can invoke only one COMMAND= line. If multiple COMMAND= lines are in the file, FoxPro invokes only the last one.
To work around this limitation, do the following:
1. Open a program using MODIFY COMMAND and name it START.PRG.
2. Add two commands, such as CLEAR and DISPLAY MEMORY.
3. Close the file.
4. Open the CONFIG.FP file using MODIFY FILE.
5. On the last COMMAND= line in the file, type the following and press
ENTER:
DO START.PRG
The line should now look like the following:
COMMAND= DO START.PRG
6. Quit and restart FoxPro.
The CONFIG.FP file will use COMMAND= to run the START.PRG program, which will invoke the commands.
Additional reference words: FoxWin FoxDos 2.00 2.50a CONFIG.FP COMMAND KBCategory: kbprg KBSubcategory: FxenvConfigfp
Last Reviewed: June 27, 1995