Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Command Line Parameters on an EXE
#6
With macro1
---------
out

str cl="This is a test my cute yes."
;str cl="''c:\xx xx\yyy.exe'' /A /B"
ARRAY(str) a
ParseCommandLine(cl a)

int i
for i 0 a.len
,out a[i]
----------
I get this output


This
is
a
test
my
cute
yes.


But with this macro2


out

str cl="This is a "test my" cute yes."
;str cl="''c:\xx xx\yyy.exe'' /A /B"
ARRAY(str) a
ParseCommandLine(cl a)

int i
for i 0 a.len
,out a[i]

I get this error output instead

Error in Testparamter with quote: missing ( after function name, or ; after statement.

Is it possible to get this output below with the above macro2 code? :?:

This
is
a
test my
cute
yes.

I'm trying to get the same parameter commands just like using a batch file or vbscript.
If possible I also would like to counter for the number of arguments passed and also error to cater if no arguments passed.
Thanks.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)