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. Either of these shortcuts will bypass the usual splash screen when Visual FoxPro opens:

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

The same 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.Fpw.
"C:\Program Files\Microsoft Visual FoxPro 8\vfp8.exe" -cd:\Projects\Security\Config.Grf
More details on using this technique here.
-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.


Back to FoxPro Developers' page

Hints & tips

The textbox class in Visual FoxPro 9 has a new Autocomplete property which shows the user the previous values that have been entered in that textbox.
Autocomplete in VFP 9

Your Access database will look more impressive if you add custom toolbars...
Custom toolbars

FoxPro has always had functions to read and write files at a low level...
Foxpro low level file functions

More...
More pages of hints and tips for users of Microsoft FoxPro and Access databases.

Site Map