Modify ↓
Opened 18 years ago
Closed 18 years ago
#381 closed Bug (Fixed)
DirCreate, Trailing BackSlach.
| Reported by: | M.v.Gulik | Owned by: | Jon |
|---|---|---|---|
| Milestone: | 3.2.13.3 | Component: | AutoIt |
| Version: | 3.2.13.1 | Severity: | None |
| Keywords: | Cc: |
Description
;; DirCreate() exeption:
;; DirCreate($path) strips trailing backslash from $path-variable.
;; autoit(3.2.13.1)
;; Not Effected autoit(3.2.12.1)
;; @OSVersion = WIN_XP
;; @OSBuild = 2600
;; @OSServicePack = Service Pack 3
;; @ProcessorArch = X86
$TextDump = ''
$TextDump &= '@AutoItVersion = ' & @AutoItVersion & @CRLF
$var1 = "NewFolder1"
$var2 = "NewFolder2\"
$var3 = "NewFolder3\b"
$TextDump &= '$var1 = ' & $var1 & @CRLF
$TextDump &= '$var2 = ' & $var2 & @CRLF
$TextDump &= '$var3 = ' & $var3 & @CRLF
If Not DirCreate($var1) Then $TextDump &= 'Err: DirCreate($var1)' & @CRLF
If Not DirCreate($var2) Then $TextDump &= 'Err: DirCreate($var2)' & @CRLF
If Not DirCreate($var3) Then $TextDump &= 'Err: DirCreate($var3)' & @CRLF
$TextDump &= '$var1 = ' & $var1 & @CRLF
$TextDump &= '$var2 = ' & $var2 & @CRLF
$TextDump &= '$var3 = ' & $var3 & @CRLF
ClipPut('[' & $TextDump & ']')
MsgBox(0, "$TextDump", '[' & $TextDump & ']')
;~ --- output ---
;~ [$var1 = NewFolder1
;~ $var2 = NewFolder2\
;~ $var3 = NewFolder3\b
;~ $var1 = NewFolder1
;~ $var2 = NewFolder2
;~ ---
Attachments (0)
Change History (6)
comment:1 by , 18 years ago
follow-up: 5 comment:2 by , 18 years ago
I don't understand the point as the outpout is
[@AutoItVersion = 3.2.12.0 $var1 = NewFolder1 $var2 = NewFolder2\ $var3 = NewFolder3\b $var1 = NewFolder1 $var2 = NewFolder2\ $var3 = NewFolder3\b ]
for me it works
comment:3 by , 18 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
comment:4 by , 18 years ago
| Resolution: | No Bug |
|---|---|
| Status: | closed → reopened |
comment:5 by , 18 years ago
Replying to anonymous:
I don't understand the point as the outpout is
[@AutoItVersion = 3.2.12.0 $var1 = NewFolder1 $var2 = NewFolder2\ $var3 = NewFolder3\b $var1 = NewFolder1 $var2 = NewFolder2\ $var3 = NewFolder3\b ]for me it works
sorry I mis the relase to use ... Still open
comment:6 by , 18 years ago
| Milestone: | → 3.2.13.3 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | reopened → closed |
Fixed in version: 3.2.13.3
Note:
See TracTickets
for help on using tickets.

Jon, line 1193 of utility.cpp. I don't think I need to comment further on that line of code and why it's wrong in about a billion ways.