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 Valik, 18 years ago

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.

comment:2 by anonymous, 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 J-Paul Mesnage, 18 years ago

Resolution: No Bug
Status: newclosed

comment:4 by J-Paul Mesnage, 18 years ago

Resolution: No Bug
Status: closedreopened

in reply to:  2 comment:5 by J-Paul Mesnage, 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 Jon, 18 years ago

Milestone: 3.2.13.3
Owner: set to Jon
Resolution: Fixed
Status: reopenedclosed

Fixed in version: 3.2.13.3

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.