Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Command.prg
Message
From
16/11/2015 11:42:44
 
 
To
16/11/2015 11:26:12
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01627460
Message ID:
01627504
Views:
75
>>>>Hi all,
>>>>
>>>>Is there a way to change which _Command.prg is used at startup? I would like the one in the current folder of the project to be loaded.
>>>a parameter in the shortcut will do that:
>>>
>>>\\ott-apv005\edrive\VAPPS\vcpr3\box.exe -cdvd.fpw
>>>
>>>the config file here is set with the -c switch
>>>the name of it is dvd.fpw
>>>
>>>Peter
>>
>>Thanks,
>>But will help in using a specific _COMMAND.PRG file?
>>I can not find any settings that addresses which _command.prg to use for the .fpw file.
>
>You cannot specify the name of the file, but you can specify where it is stored, since it will be stored in the same directory as config.fpw. IOW, create a set of directories, for instance one per project, and create one config.fpw in each of them. That's what I do all the time. I also create a subdirectory from these directories for all temp files.

As mentioned, the Config.fpw in the VFP home directory is used by default. This fine, when the VFP9.exe is launched from the Thumb Drive. To resolve the more direct issue, I created a VFP.prg program, and placed it in the root folder of the application development folder. It sets the more specific environments setting (i.e Path, FoxUser, etc.).

When I run the VFP.prg from the file manager, the config.fpw n Home folder is used and remainder of the setting from the VFP.prg are ran at start up.
Greg Reichert
Previous
Reply
Map
View

Click here to load this message in the networking platform