Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I pass info to an exe through Config.fpw
Message
From
07/08/1998 17:38:14
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
07/08/1998 17:31:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00124959
Message ID:
00124964
Views:
12
>Does anyone know is there's a way to pass parameters to the startup program in an .exe through the Config file or another file? I'm trying to figure out a way to allow users to have two icons on their desktop, one of which would run the application with test data and the other would run the application with live data. I was hoping to do this by specifying a different config.fpw file in the Windows icon for one of them, but couldn't get it to work. I tried using _startup and command = do start.prg with but it seems that the .exe just ignores those lines in the config.fpw
>
>I finally ended up just copying the app to two directories for now in the hopes I can come up with a better solution. Is there one?
>
>Thanks for any advice -
>
>Sylvia
Sylvia,
You could set two different configs yet and call them with :
myprog -Cconfig1.fpw
myprog -Cconfig2.fpw

Config1.fpw
path=mytestdata

Config2.fpw
path=myrealdata

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform