Sign in to follow this  
Followers 0
Guest hein bloed

$CmdLine and double quotes/inverted commas

2 posts in this topic

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.

Share this post


Link to post
Share on other sites



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 ..


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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
Sign in to follow this  
Followers 0