Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Configuration Files
Message
De
29/08/1997 10:00:36
 
 
À
28/08/1997 09:09:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00047123
Message ID:
00047569
Vues:
25
>>>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
>>
>>
>>Not sure but you can try one thing..
>>
>>Win 95 allows long file/folder names, when you go to msdos prompt..
>>
>>it shows the name in 8 char.. i.e. for Program Files it will show you something like progra~1..
>>
>>Take the exact path what it is showing you in Dos and then try it..
>
>Vinod,
>
>Your first suggestion worked perfectly. I simply replaced the folder name "Program Files" with "Progra~1 and VFP was able to find the custom configuration file. The new target string is now similar to the following:
>"C:\PROGRA~1\DEVSTUDIO\VFP\VFP.EXE" -C":\PROGRA~1\DEVSTUDIO\VFP\CUSTFILE.CFG"
>
>Thank you very much and thanks to everyone else who responded.
>
>James McIlwrath
>Datasmith Custom Software
>Mississauga, ON
>Canada

you are welcome from all of us..
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform