dbTalk Databases Forums  

command line parameters in compiled exe do not work

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss command line parameters in compiled exe do not work in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
andipfaff
 
Posts: n/a

Default command line parameters in compiled exe do not work - 09-14-2005 , 08:31 AM






Hi everybody,

I have compiled my application to a .exe file. When starting it,
command line switches will not be recognized (prog.exe /cf_autoexport).
A check with "wait window cp1" (cp1 is the first command line parameter
in the main prg) gives me a .f. as the result.
When starting the main prg with

DO start with "/cf_autoexport"

the switches work well.

What is the problem? I'm working with VFP8 engl SP1 on W2k.

Thanks in advance
Andi


Reply With Quote
  #2  
Old   
Dan Freeman
 
Posts: n/a

Default Re: command line parameters in compiled exe do not work - 09-14-2005 , 11:06 AM






Your parameter begins with /c which is the command line switch that tells
VFP to use a specific config.fpw so it's looking for a configuration file
called f_autoexport.fpw. <g>

Either change the parameter, or leave off the / which will work just fine:

prog.exe cf_autoexport

(And yes, I know this from hard-won bitter practical experience. <g>)

I hope you really aren't trying to call an exe start.exe!

Dan


andipfaff wrote:
Quote:
Hi everybody,

I have compiled my application to a .exe file. When starting it,
command line switches will not be recognized (prog.exe
/cf_autoexport). A check with "wait window cp1" (cp1 is the first
command line parameter in the main prg) gives me a .f. as the result.
When starting the main prg with

DO start with "/cf_autoexport"

the switches work well.

What is the problem? I'm working with VFP8 engl SP1 on W2k.

Thanks in advance
Andi



Reply With Quote
  #3  
Old   
andipfaff
 
Posts: n/a

Default Re: command line parameters in compiled exe do not work - 09-15-2005 , 03:14 AM



Thanks, that worked!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.