Opened 13 years ago
Closed 13 years ago
#2373 closed Bug (Fixed)
@ScriptDir returns trailing slash
| Reported by: | 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 , 13 years ago
comment:2 by , 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:3 by , 13 years ago
Looks like JP changed it after this discussion:
http://www.autoitscript.com/forum/index.php?s=&showtopic=35346&view=findpost&p=259052
comment:4 by , 13 years ago
Definety we must update the doc for root because FileChangeDir(@ScriptDir) for a script located on root
comment:5 by , 13 years ago
| Resolution: | → Fixed |
|---|---|
| Status: | new → closed |
I've updated this in the documentation. I don't know when it'll be included but it's done.

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