Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Command-Line Switches

Visual Studio .NET 2003

You can add switches to the Visual FoxPro command line to affect how the program starts.

To use a command-line switch

  • Add the switch after Vfp7.exe on the command line or in a shortcut.

    If the command-line switch includes a file name, do not put any spaces between the switch and the file name.

Switches

-A
Ignores the default configuration file and Windows registry settings. This is equivalent to starting Visual FoxPro with the configuration settings it had when first installed, which can be useful for debugging settings that might cause Visual FoxPro to start incorrectly.

For details about configuring the Visual FoxPro environment, see Configuring Visual FoxPro.

-BFileName,Duration
Displays your own bitmap (.bmp), .gif, or .jpg graphic file when Visual FoxPro is started. If the bitmap you specify cannot be located, a bitmap isn't displayed when Visual FoxPro is started. The -b command line switch can also be included in a Visual FoxPro shortcut:
C:\Program Files\Microsoft Visual ;
FoxPro 7.0\Vfp7.exe -bC:\Mydir\Mybmp.bmp

You can also specify the duration in milliseconds, as in the following examples.

VFP7.EXE –bMyPhoto.gif,3000
VFP7.EXE –b,5000

Unlike .bmp image size, .gif and .jpg image size cannot be determined until the image is rendered. If the current screen resolution is lower than the size of the specified image, no image is displayed.

-CFileName
Specifies a configuration file (including path if necessary) other than the default (Config.fpw). Create the configuration file using any text editor.

For details about configuring the Visual FoxPro environment, see Configuring Visual FoxPro.

For example, to start Visual FoxPro with a custom configuration file, you would alter the command to something like this:

C:\Program Files\Microsoft Visual ;
FoxPro 7.0\Vfp7.exe -CMYConfig.fpw
-DFileName
Specifies a runtime .DLL file (including path if necessary) other than the default. Using this switch makes it possible for you to try different versions of the runtime DLL, for example, different releases.

For more information, see Selection of a Run-Time Library and Extending Visual FoxPro with External Libraries.

-LFileName
Specifies a resource file (including path if necessary) other than the default. Using this switch makes it possible for you to use Visual FoxPro in a language other than the current language specified by the system.
-R
In earlier versions, refreshes the Windows Registry with information about Visual FoxPro, such as associations for Visual FoxPro files. Using this switch is similar to double-clicking a .REG file. The -R switch does not update the registry with settings from the Options dialog. In later versions, use /regserver.
-T or /nologo
Suppresses the display of the Visual FoxPro sign-on screen (banner).

To start Visual FoxPro without a sign-on screen, use these commands:

C:\Program Files\Microsoft Visual FoxPro 7.0\Vfp7.exe –T
C:\Program Files\Microsoft Visual FoxPro 7.0\Vfp7.exe /nologo
/?
Displays the available Command line arguments.
/Regserver
Registers Visual FoxPro default registry keys.
/UnRegServer
Removes Visual FoxPro default registry keys.

See Also

Configuring Visual FoxPro | Selection of a Run-Time Library | Extending Visual FoxPro with External Libraries | Using Command-Line Options When Starting Visual FoxPro

Show:
© 2015 Microsoft