Jump to content

$CmdLine and double quotes/inverted commas


Guest hein bloed
 Share

Recommended Posts

Guest hein bloed

Hi,

having the following program to reproduce:

ConsoleWrite($CmdLine[1] & @CRLF & $CmdLineRaw)

Calling it two parameters set, the password contains 2xinverted commas:

password""

username

gives this output:

password

/ErrorStdOut "Z:\Documents and Settings\tgdlopa3\Desktop\testtesttest.au3" password"" username

Calling it two parameters set, the password contains 1xinverted commas::

password"

username

gives this output:

password" username

/ErrorStdOut "Z:\Documents and Settings\tgdlopa3\Desktop\testtesttest.au3" password" username

Calling it two parameters set, the password contains 3xinverted commas::

password"1"2"3

username

gives this output:

password12"3 username

/ErrorStdOut "Z:\Documents and Settings\tgdlopa3\Desktop\testtesttest.au3" password"1"2"3 username

Calling it two parameters set, the password contains 4xinverted commas::

password"1"2"3"

username

gives this output:

password123

/ErrorStdOut "Z:\Documents and Settings\tgdlopa3\Desktop\testtesttest.au3" password"1"2"3" username

The help file reads:

A parameter that contains spaces must be surrounded by "double quotes". Compiled scripts accept command line parameters in the same way.

Well, this explains why it's not possible to use parameters that contain "double quotes". Maybe shift thios topic to "not a bug" or maybe add a line the the help file. Just opened the topic because I couldn't find a similar topic in the forum.

Link to comment
Share on other sites

  • Developers

It is possible to have Double quotes but you will have to lexer the commandline yourself by using $cmdlineraw.

Not a BUG ... Moved to support as suggested ..

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...