Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Command.prg
Message
From
15/11/2015 13:51:53
 
 
To
15/11/2015 13:41:28
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:
01627466
Views:
62
>>>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.
>>
>>AFAIR command/link line and afterwards config.fpw is the order searched for entry. Current project and subsequently its folder probably not known then, but a general prg could establish current project and eval() a dynamically created line pointing to that file
>
>OK, perhaps a bit more clarification on my part is needed.
>
>I have VFP.exe (and other needed parts) on a Flash Drive. I can plug my Flash Drive into any computer and launch VFP. But when it starts, it loads (or creates new) a resource file in the users AppData\roaming\ folder. I have tried placing a Config.FPW file in the VFP folder, with RESOURCE = command to .\FoxUser.dbf but I cannot seem to get VFP.EXE -C.\config.fpw to load the correct resource file and _Command.prg located on my flash drive.


I still think the way to accomplish is via specific start line/ batch file with parameters to perhaps CD somewhere and then start perhaps with specific parameter line. There ***might*** be seperate rule sets for programs starting from removable media like a flash drive - perhaps creating an xCopy folder on fixed disk on work start and RD on stop might be needed. Or perhaps just creating the necessary entries in the registry for the Flash vfp directory might be enough - remember that the typical install is not done with your approach. Might explain the AppData...location.

I work via xCopy approach plus standardized subst to letter X: for that xCopy dir most of the times.
Previous
Reply
Map
View

Click here to load this message in the networking platform