Quotation marks enclosed Program Parameter

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Max..

Code: Select all

Debug ProgramParameter()
Passing "123" to the program leads to the parameter 123 without
quotation marks.

Is this a bug or did I miss anything?

Any way to get quotation marks as part of the parameter?

Max.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Max..

Ok, seen in the german forum that this is standard behaviour.

But

Code: Select all

Debug PeekS(getcommandline_())
does the trick, including the quotes.

Not sure if I will use

Code: Select all

LPWSTR* CommandLineToArgvW(  LPCWSTR lpCmdLine,
  int* pNumArgs
);
To retrieve the Arguments or parse myself (likely). But anyway, solution found, problem solved. :)




Max.
Post Reply