FoxPro command line switches

Visual FoxPro can accept a number of command line switches. These are single-character codes which appear in the shortcut to VFP prefixed with a / or - character. As an example, either of these commands will open Visual FoxPro and bypass the usual splash screen:

"C:\Program Files\Microsoft Visual FoxPro 8\vfp8.exe" -t

or

"C:\Program Files\Microsoft Visual FoxPro 8\vfp8.exe" /t

Most of these switches can be applied to executables built in VFP. Some of them (for example -b and -c) require a filename. Do not leave a space between the character and the filename.

The following switches are useful - all can be given in upper or lower case:

-A
Ignore the default settings from the configuration file and Windows registry. Useful when you have an application working on one PC but not on another.
-B
Display a bitmap as a splash screen for an optional number of milli- seconds. This shortcut will run the executable of the webadmin application and display c:\web.jpg as a splash screen: for one second:

D:\webadmin.exe /bc:\web.jpg, 1000
-C
Use another configuration file instead of the default config.fpw. This shortcut uses a local file named Config.Grf instead of the default Config.Fpw:

"C:\Program Files\Microsoft Visual FoxPro 8\vfp8.exe"
     -cd:\Projects\Security\Config.Grf

More details on using this technique to control the FoxPro environment
-T
Bypass the standard VFP splash screen.
-?
Display all the command-line switches. This option only works with VFP.Exe itself, it will not work with an executable.

Related Items

Starting FoxPro

Startup options to customise the FoxPro development environment

Read More

FoxPro configuration file

Using and distributing the FoxPro configuration file

Read More

FoxPro at development and runtime

Switching between Foxpro development and runtime

Read More

VBA Code for Events in Access

VBA Code for Events in Access

How to open the VBA code editor automatically in Microsoft Access as the default for methods.

Read More

Startup Options for a Microsoft Access database

Different ways of using the Access StartUp options to improve database security

Read More