Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / FoxPro, Visual FoxPro [игнор отключен] [закрыт для гостей] / Запуск VFP c параметрами. / 3 сообщений из 3, страница 1 из 1
15.03.2005, 09:35
    #32960053
Vitalь
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Запуск VFP c параметрами.
С какими параметрами можно запустить vfp.exe?
...
Рейтинг: 0 / 0
15.03.2005, 09:46
    #32960067
Hel!Riser
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Запуск VFP c параметрами.
Command-Line Switches
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 Vfp6.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 Chapter 3, Configuring Visual FoxPro in the Installation Guide.

-BFileName

Displays your own bitmap 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 ;
Studio\Vfp98\Vfp6.exe -bC:\Mydir\Mybmp.bmp

-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 Chapter 3, Configuring Visual FoxPro, in the Installation Guide.

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 ;
Studio\Vfp98\Vfp6.exe -CMYConfig.fpw

-DFileName

Specifies a runtime .DLL file (including path if necessary) other than the default. Using this switch allows you to try different versions of the runtime DLL, for example, different releases.

For more information, see “Including a Run-Time Library” in Chapter 27, Extending Visual FoxPro with External Libraries, in the Programmer's Guide.

-LFileName

Specifies a resource file (including path if necessary) other than the default. Using this switch allows you to use Visual FoxPro in a language other than the current language specified by the system.

-R

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.

-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 Studio\Vfp98\Vfp6.exe –T
C:\Program Files\Microsoft Visual Studio\Vfp98\Vfp6.exe /nologo

(с) хельп
...
Рейтинг: 0 / 0
15.03.2005, 10:04
    #32960105
Andrey Ts
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Запуск VFP c параметрами.
Hel!Riser
-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 Chapter 3, Configuring Visual FoxPro, in the Installation Guide.

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 ;
Studio\Vfp98\Vfp6.exe -CMYConfig.fpw

При этом может оказаться полезным запускать свой prg (с настройками макросов, например). Надо указать в конце Config.fpw:
Код: plaintext
COMMAND=DO my_sets.prg
...
Рейтинг: 0 / 0
Форумы / FoxPro, Visual FoxPro [игнор отключен] [закрыт для гостей] / Запуск VFP c параметрами. / 3 сообщений из 3, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]