﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
472	@ScriptDir returns a slash (\) when script run from root	congo (seanw@…		"In AutoIT v3.2.12.0, @ScriptDir is documented as NOT returning a trailing slash(\), however due to the Win API if a compiled script is run from a drive root (like an autorun DVD/CD) it does infact return a trailing backslash.

Easy to work around if you can't be 100% sure of where the app will be run:


{{{
	$myscript = @ScriptDir
	If StringRight($drive, 1) == ""\"" Then ;in root of a drive a trailing slash is returned by Windows!
		$t = StringSplit($drive, ""\"")
		$myscript = $t[1]
	EndIf
}}}

The documentation may need to be updated, or the macro modified
"	Bug	closed		AutoIt	3.2.12.0	None	No Bug	@ScriptDir Documentation	
