Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #12102
| From | "R.Wieser" <address@not.available> |
|---|---|
| Newsgroups | microsoft.public.scripting.vbscript |
| Subject | Re: Trick to know whether a command line parameter is quoted or not? |
| Date | 2019-04-22 15:37 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <q9kg2s$tk7$1@gioia.aioe.org> (permalink) |
| References | <14dzse2vcwse3.2bqofza8ospq$.dlg@40tude.net> <q9hrh9$1l46$1@gioia.aioe.org> <5rqd1b52axj.1tjxmu3y3tx9.dlg@40tude.net> |
JJ, >>> parameter #2 would be different from the program >>> because it's not double-quoted. ... > No. It's not #0. It's #2. My apologies. I thought you where referring to the origionals. Also, with nothing said further, both #1 and #2 became unquoted in the end result, so I ruled them out. > Because #1 has a space in it, it means that the original parameter > is quoted, so I could restore that to: "def ghi" I would be careful there: you've found one character that indcates that it was origionally quoted, but there are more ... > But I have no way to know whether #2 was originally passed > with quote or not. It certainly looks that way. There seems to be a kind of solution using WMI though (not very clean): https://stackoverflow.com/questions/40056204/how-do-i-get-raw-vbscript-command-line-arguments The only other solution seems to be to add another object, just to encapsulate the GetCommandLine function (Kernel32). Regards, Rudy Wieser
Back to microsoft.public.scripting.vbscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Trick to know whether a command line parameter is quoted or not? JJ <jj4public@vfemail.net> - 2019-04-21 19:17 +0700
Re: Trick to know whether a command line parameter is quoted or not? "R.Wieser" <address@not.available> - 2019-04-21 15:34 +0200
Re: Trick to know whether a command line parameter is quoted or not? "R.Wieser" <address@not.available> - 2019-04-21 15:39 +0200
Re: Trick to know whether a command line parameter is quoted or not? JJ <jj4public@vfemail.net> - 2019-04-22 19:07 +0700
Re: Trick to know whether a command line parameter is quoted or not? "R.Wieser" <address@not.available> - 2019-04-22 15:37 +0200
Re: Trick to know whether a command line parameter is quoted or not? JJ <jj4public@vfemail.net> - 2019-04-23 22:51 +0700
Re: Trick to know whether a command line parameter is quoted or not? "Mayayana" <mayayana@invalid.nospam> - 2019-04-21 10:09 -0400
Re: Trick to know whether a command line parameter is quoted or not? JJ <jj4public@vfemail.net> - 2019-04-22 19:08 +0700
Re: Trick to know whether a command line parameter is quoted or not? "Mayayana" <mayayana@invalid.nospam> - 2019-04-22 08:53 -0400
csiph-web