Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Double quotes on commandline

7 views
Skip to first unread message

Frank Staal

unread,
Mar 29, 2007, 3:55:27 AM3/29/07
to
How do you enter a double quote character (") on the commandline?
Simply running app.exe "He said: "hi"" ignores the double quotes
around hi. Running it like with reg.exe as in app.exe "He said:
\"hi\"" result in \hi\ in the ParamStr(). Unless I miss something in
the source I reckon this is a bug.

I did recode the whole ParamStr() functionality so it works in the
reg.exe-way, but I'd be very grateful if the bug got eradicated at
Borland's end of the line.

Remy Lebeau (TeamB)

unread,
Mar 29, 2007, 2:13:05 PM3/29/07
to

"Frank Staal" <F.Staal_At_NOSPAM.Hushmail.com@> wrote in message
news:a6sm03t3mhldgfpmj...@4ax.com...

> How do you enter a double quote character (") on the commandline?

I just answered this very same question a couple of days ago. Look at
the "Escaping of quotes in parameters?" discussion in the
"borland.public.delphi.language.delphi.win32" newsgroup.


Gambit


Craig Stuntz [TeamB]

unread,
Mar 29, 2007, 2:24:00 PM3/29/07
to
Frank Staal wrote:

> How do you enter a double quote character (") on the commandline?

Use GetCommandLine instead of ParamStr. I think the " bug is in QC.

--
Craig Stuntz [TeamB] · Vertex Systems Corp. · Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
Everything You Need to Know About InterBase Character Sets:
http://blogs.teamb.com/craigstuntz/articles/403.aspx

Frank Staal

unread,
Apr 2, 2007, 3:58:40 AM4/2/07
to
On Thu, 29 Mar 2007 10:13:05 -0800, "Remy Lebeau \(TeamB\)"
<no....@no.spam.com> wrote:

>I just answered this very same question a couple of days ago. Look at
>the "Escaping of quotes in parameters?" discussion in the
>"borland.public.delphi.language.delphi.win32" newsgroup.

Sorry, hadn't seen it. Searched the newsgroups for "double quote" and
"doublequote", not for quote...

Craig:

> Use GetCommandLine instead of ParamStr. I think the " bug is in QC.

I already recoded it before I thought of mentioning it here. ;)

The reason I posted it was to raise awareness of this. But as can be
seen above it did not cross my mind to search for quote.

Thanks anyway.

0 new messages