I have this AutoIt script:
ControlFocus(\"Open\", \"\", \"Edit1\")
Sleep(500)
ControlSetText(\"Open\", \"\", \"Edit1\", $CmdLine[1])
Sleep(500)
ControlClick(\"Op
AutoIt supports two types of quoting, which are interchangeable:
MsgBox(0, "single-double", 'hello " world') ; hello " world
MsgBox(0, "double-single", "hello ' world") ; hello ' world
MsgBox(0, "double-double", "hello "" world") ; hello " world
MsgBox(0, "single-single", 'hello '' world') ; hello ' world
I personally prefer the first two (depending on how my string looks like).
So one of those should do:
ControlSetText("Open", "", "Edit1", $CmdLine[1] & '"') ; Changing quoting where needed
ControlSetText('Open', '', 'Edit1', $CmdLine[1] & '"') ; Changing quoting consistent