Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_Command.prg
Message
De
15/11/2015 21:33:26
 
 
À
15/11/2015 13:26:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01627460
Message ID:
01627478
Vues:
270
>>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.
>
>I use one resource file per project, specified in different config.fpw files. To specify another config.fpw, add -CYourPath\YourConFigFile as a parameter to VFP9.
>From Help on Command Window:
>
>The contents of the Command window are saved to a file, _command.prg, automatically unless the noRecentDocHistory system policy is enabled or you are not using a FoxUser resource file. You can clear the window by selecting Clear from the Command Window shortcut menu. To enable its use by multiple instances of Visual FoxPro, the file is only read when starting Visual FoxPro, and written when exiting Visual FoxPro. The file is located in the same directory as the FoxUser resource file. You can determine or change the location of the resource file from the Options dialog box, File Locations tab, or via language using SET("RESOURCE") or SET RESOURCE respectively.

Yep, that is pretty much what I've been using myself. I also have the project-specific CONFIG.FPW define their own FOXUSER resource files. Although it seems "more complicated" to have more than one shortcut to start VFP, it does help in maintaining a relatively clean configuration that avoids keeping the environment configuration separate for each project (this avoids situation where settings for one project "leaking in" into other projects). It also saved me some headaches with transition between pre-Vista and post-Vista OS environment (in particular the wonkiness that occurs with configuration files being stored in folder hierarchy like "c:\Program Files").
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform