Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to load command window from my _command.prg?
Message
De
21/05/2005 16:20:51
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01016487
Message ID:
01016525
Vues:
60
>>I have a separate foxuser for each project, which helps me a lot by keeping MRU lists separate for each one of them. When I quit VFP, the _command.prg is saved to the directory where current foxuser is. However, since I'm using the "Task Pane Manager - Environment Manager" to navigate between projects, VFP always reads the home()+"_command.prg" into the command window, so whatever I had in the local _command.prg is pretty much lost. I know I could modi comm _command and see what I did last time, but I wish there was something I could do in the Environment Manager to make it happen automatically.
>>
>>So, does anyone know how to load text into command window without actually executing it?
>
>Well, I did something similar to this, each time we start VFP, I save a copy of _command in a backup folder (I keep in there 3 months (am I paranoid?) worth of _commands with a name format like _Command_UserName_Date), and I also add some customizable text to it, so when Foxpro starts, in the command window we have a text that looks like:
>
>
>******************************************************
>* Session started on (date) or (datetime)            *
>******************************************************
>
What's different in my situation is that I have about a dozen _command.prg files in various directories, one per project, and accordingly, the same number of foxuser tables.

Actually, what I could do (you just gave me the idea, somehow), is to launch a new version of VFP in the given folder, and then shut it down. And I could have a standardized script (at home(), probably) which would force the Environment manager to read the local settings for that location.

IOW... I think it's not worth the trouble. Feasible, probably, but just don't feel like I'll be having time for that, ever.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform