Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Configuration Files
Message
 
À
27/08/1997 10:24:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00047123
Message ID:
00047250
Vues:
21
>I have recently bought a new computer. Previously I had installed Visual FoxPro in the following folder: C:\VFP. When I installed Visual FoxPro on my new computer, it wanted to be installed in
>C:\PROGRAM FILE\DEVSTUDIO\VFP and I accepted the default location.
>
>In the past, it has been my practice to create shortcuts on the START menu and on the Windows desktop that will launch versions of VFP with an environment suitable to the project on which I plan to work. I would accomplish this by writing a custom configuration file, saving it in the HOME() folder and using the -c switch in the target string of the shortcut to point VFP towards the custom configuration file. Here is a sample target string:
>C:\VFP\VFP.EXE -CC:\VFP\CUSTFILE.CFG
>
>Now that VFP is installed in the C:\PROGRAM FILES\DEVSTUDIO\VFP folder, I haven't been able to successfully point it toward a custom configuration file. I can write code in the default configuration file CONFIG.FPW and it will execute when I launch VFP from a shortcut with a target string, surrounded by quotation marks, that doesn't contain the -c switch. For example: "C:\PROGRAM FILES\DEVSTUDIO\VFP\VFP.EXE".
>
>Unfortunately, when I use either of the following strings in the shortcut target:
>"C:\PROGRAM FILES\DEVSTUDIO\VFP\VFP.EXE" -CC:\PROGRAM FILES\DEVSTUDIO\VFP\CUSTFILE.CFG
>"C:\PROGRAM FILES\DEVSTUDIO\VFP\VFP.EXE" -C"C:\PROGRAM FILES\DEVSTUDIO\VFP\CUSTFILE.CFG"
>Visual FoxPro launches, but a messagebox immediately pops up saying "'custfile.cfg' does not exist".
>
>When I enter the following string in the shortcut target:
>"C:\PROGRAM FILES\DEVSTUDIO\VFP\VFP.EXE -CC:\PROGRAM FILES\DEVSTUDIO\VFP\CUSTFILE.CFG"
>As I expected, I am not permitted to save it because the switch is not part of the pathname and therefore makes the pathname invalid.
>
>The simple and obvious solution would be to remove VFP from it's present location and re-install it in it's own folder off the root directory. That way I wouldn't have to deal with nasty long folder names or folder names containing spaces. On the other hand, I feel there must be a solution to this. Does anyone have an idea?
>
>James McIlwrath

James, I see you have a NEW computer. When I was setting config files on a new hard disk a couple months ago (thread is somewhere in the files) I couldn't get VFP to read any config in any directory. The answer was to add my WIN95/SYSTEM directory (where the VFP ESL & other Win95 files reside) to my path in the AUTOEXEC.BAT of the computer. Worked fine after that for any path name. I wasn't having any other problems, just trouble finding config and foxuser files.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform