Page 1 of 1

Command ProgramParameter not retrieving parameter ???

Posted: Sun Jul 21, 2019 2:36 am
by forgottencoder

Code: Select all


;call your program test
;and type on command line "test %asa" and you will get "asa" not "%asa" for 1st parameter ???

OpenConsole()
Result$ = ProgramParameter(0)
PrintN(Result$)
Input()
CloseConsole()


I am using version 5.70 and windows 7 64bits. I forgot to mention earlier that i have purebasic 5.70 32 bits installed :)

Re: Command ProgramParameter not retrieving parameter ???

Posted: Sun Jul 21, 2019 6:09 am
by BarryG
forgottencoder wrote:I am using version 5.70
Works as expected with 5.71 beta 2. I get "%asa" shown.

Re: Command ProgramParameter not retrieving parameter ???

Posted: Sun Jul 21, 2019 8:16 am
by mk-soft
Works fine with PB v5.70

Re: Command ProgramParameter not retrieving parameter ???

Posted: Sun Jul 21, 2019 9:50 am
by forgottencoder
Not working on purebasic 5.70 32 bits.

Re: Command ProgramParameter not retrieving parameter ???

Posted: Sun Jul 21, 2019 10:17 am
by mk-soft
32 bit Version is right, but

You can't use [%]asa inside a Batch file!

Re: Command ProgramParameter not retrieving parameter ???

Posted: Sun Jul 21, 2019 11:28 am
by forgottencoder
So that's why. mk-soft i confirm that i was using a batch file with % to execute the program with parameter.
I went thru command line and it's working. Ta-Da. Learning everyday.

Thanks everybody for the help :)