Modify ↓
Opened on Feb 6, 2009 at 1:41:04 AM
Closed on Feb 6, 2009 at 2:15:09 AM
#801 closed Bug (No Bug)
Run/RunWait path bug
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.2.12.1 | Severity: | None |
| Keywords: | Run RunWait | Cc: |
Description
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 3.2.12.1, maybe exists in AutoIT 3.3.0.0
Attachments (0)
Change History (1)
comment:1 by , on Feb 6, 2009 at 2:15:09 AM
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

No, this is a quirk of cmd.exe. From cmd.exe /?:
Why you think this is an AutoIt error when it's clearly from cmd.exe is beyond me.
No bug.