Modify

Opened 17 years ago

Closed 17 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 Changed 17 years ago by Valik

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 follow-up: Changed 17 years ago by 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

comment:3 Changed 17 years ago by Jpm

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

comment:4 Changed 17 years ago by Jpm

  • Resolution No Bug deleted
  • Status changed from closed to reopened

comment:5 in reply to: ↑ 2 Changed 17 years ago by Jpm

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 Changed 17 years ago by Jon

  • Milestone set to 3.2.13.3
  • Owner set to Jon
  • Resolution set to Fixed
  • Status changed from reopened to closed

Fixed in version: 3.2.13.3

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

Action
as closed The owner will remain Jon.
Author


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

 
Note: See TracTickets for help on using tickets.