Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resource File problem
Message
De
14/02/1999 06:30:25
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00187485
Message ID:
00187490
Vues:
13
>I'm converting a Foxpro 2.5 DOS system to VFP 6.0. I need both systems up and running to do the conversion, but when I put VFP6 on my C drive, it takes over my resource file and I don't have color sets, and printer drivers in my old version.
>
>Is there a way that I can separate the two until the conversion is complete?

The easiest thing to do would be to rename the old FOXUSER and CONFIG files, and then use the DOS environment FOXPROCFG to tell FoxPro DOS where to get its configuration. You could put your FOXUSER.DBF and FOXUSER.FPT, along with a CONFIG.FP in a separate directory (let's call it C:\FPDOSCFG for convenience.) In the CONFIG.FP, make sure that there is a line that reads:

RESOURCE = C:\FPDOSCFG\FOXUSER.DBF

Next, add the following statement to your AUTOEXEC.BAT:

FOXPROCFG=C:\FPDOSCFG\CONFIG.FP

This will tell FPDOS to look at the CONFIG.FP in the C:\FPDOSCFG directory; that file directs that FPDOS use the FOXUSER.DBF in that directory.

There's nothing special about the name of the resource file, either; you could name the FOXUSER.DBF FPDOSCFG.DBF, and use the line:

RESOURCE = C:\FPDOSCFG\FPDOSCFG.DBF

in the CONFIG.FP you point to with the FOXPROCFG environment variable.

If you have a CONFIG.FP in use now that is always found properly, you could add the RESOURCE = to the existing CONFIG.FP and it will point to the resource file you want used. The key is to make sure that the CONFIG file points to the correct FOXUSER files, and that they aren't the ones used by VFP.

VFP can be directed to use a different CONFIG file using the FOXPROWCFG environment variable; again, you can direct that it use a different set of FOXUSER files using RESOURCE =. in the CONFIG.FPW file.

You can also have VFP start up with a different CONFIG.FPW using the -c command line parameter. The following line would start VFP using the file C:\VFP\MYVFPCFG.DEV for its CONFIG file:

VFP -cC:\VFP\MYVFPCFG.DEV

Good luck!

Ed
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform