Modify

Opened 13 years ago

Closed 13 years ago

#2373 closed Bug (Fixed)

@ScriptDir returns trailing slash

Reported by: BinaryBrother@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.8.1 Severity: None
Keywords: Cc:

Description

@ScriptDir is returning a trailing slash for me, consistently, on the machine that I'm currently using.

The problem is either in functionality or documentation. The help documentation says that this Macro will NOT return a trailing slash.

Windows 7 x86
UAC Enabled
-All Stock

Relevant forum thread:
http://www.autoitscript.com/forum/topic/153104-scriptdir-returns-trailing-slash/

Attachments (0)

Change History (5)

comment:1 by BinaryBrother@…, 13 years ago

Only happens when the script is located in the root of a drive. Wraithdu and JLogan3o13 pointed this out. .

comment:2 by guinness, 13 years ago

This is intentional and was changed back in:

19th December, 2006 - v3.2.2.0
Fixed: @ScriptDir equal @WorkingDir for rootdir (x:\).

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

Definety we must update the doc for root because FileChangeDir(@ScriptDir) for a script located on root

comment:5 by James, 13 years ago

Resolution: Fixed
Status: newclosed

I've updated this in the documentation. I don't know when it'll be included but it's done.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


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