----- Original Message ----- From: "Garry Bettle" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Wed, 22 Aug 2007 11:30:12 +0100 Subject: Re: Missing Parameters in Main.prg
>On 8/22/07, Gianni Turri wrote: >> Hi Garry, >> >> are you sure? >> >> I have created a shortcut to MyProgram.exe and added the following >> parameters: >> 12345678 /Option1 /Option2 >> >> The messagebox displays >> >> tcMarketId = 12345678, tcParam1 = /Option1, tcParam2 = /Option2, tcParam3 = >> .F. >> >> Gianni > >Hi Gianni, > >Thanks for your reply. > >I wouldn't be running the form from a shortcut - it could be scheduled >to run at a certain time inside a batch file or at the command line. > >Cheers, > >Garry I have created a batch file named MyProgramCmd.bat with three way to pass parameters: MyProgram.exe 12345678 /Option1 /Option2 result: tcMarketId = 12345678, tcParam1 = /Option1, tcParam2 = /Option2, tcParam3 = .F. MyProgram.exe 12345678/Option1/Option2 result: tcMarketId = 12345678/Option1/Option2, tcParam1 = .F., tcParam2 = .F., tcParam3 = .F. MyProgram.exe "12345678 /Option1 /Option2" result: tcMarketId = 12345678 /Option1 /Option2, tcParam1 = .F., tcParam2 = .F., tcParam3 = .F. Gianni _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.