Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Config file not working
Message
 
 
À
16/08/2009 23:39:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01418189
Message ID:
01418401
Vues:
47
>>>>>>Hello,
>>>>>>
>>>>>>I'm trying to use a config file to change the default value of the system variable _ASCIICOLS in a shipping .exe file.
>>>>>>I created a file with this in it:
>>>>>>_ASCIICOLS = 200
>>>>>>
>>>>>>I invoke the app like this:
>>>>>> myapp.exe -cmyconfigfile.txt
>>
>>>Complete SWAG - and I doubt it would help, but try to change the extension of the config file to fpw.
>>
>>In general case you'd be right, but the command line has the proper switch to override that - and then the filename and extension can be anything.
>
>
>I'm missing something more fundamental -
>
>I've renamed the config file to config.fpw, and put a _STARTUP = "myfile.prg" statement in it.
>I've tried COMMAND = DO "myfile.prg" instead.
>I've tried including the the config file in my project as well as invoking it via a -c command line option when I start my app.
>The result still looks as if none of the statements I've tried in it are being executed.
>With filemon, I see my config file being accessed, but don't see myfile.prg being accessed.
>
>?

I believe it should be just

COMMAND = "myPrgFile.Prg"

Though according to http://msdn.microsoft.com/en-us/library/377x0zxd(VS.80).aspx it should be as you tried

Command = Do myFile.prg
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform