Opened 15 years ago

Closed 15 years ago

#801 closed Bug (No Bug)

Run/RunWait path bug

Reported by: txj2000@… Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Run RunWait Cc:


if path contains ( ), Run/RunWait run error.

example code like this

$nRetCode = Run(@ComSpec & " /k " & @ScriptDir & "\()\MyBatch.bat")
$nRetCode = Run(@ComSpec & " /k " & '"' & @ScriptDir & "\()\MyBatch.bat" & '"')
$nRetCode = RunWait(@ComSpec & " /k " & @ScriptDir & "\(AnyPath)\MyBatch.bat")
$nRetCode = RunWait(@ComSpec & " /k " & '"' & @ScriptDir & "\(AnyPath)\MyBatch.bat" & '"')

the above 4 statements will run error. this bug exists in AutoIT, maybe exists in AutoIT

Attachments (0)

Change History (1)

comment:1 Changed 15 years ago by Valik

  • Resolution set to No Bug
  • Status changed from new to closed

No, this is a quirk of cmd.exe. From cmd.exe /?:

The special characters that require quotes are:


Why you think this is an AutoIt error when it's clearly from cmd.exe is beyond me.

No bug.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.