Environment versions
Network:
Windows 2008 Server
>>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only