﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1618	"ShellExecute(""C:\"") causes script hanging"	MrCreatoR <mscreator@…>		"If we use '''ShellExecute(""C:\"")''' as last command in the script (just before we exit the script), then the script is hanged (no Exit operation is performed). The default tray icon is dissapeared, but the process does not terminated fully.

Example:

{{{
ShellExecute(""C:\"")
;MsgBox(0, """", ""Exit"")
Exit
}}}

if we uncomment the msgbox line, then everything is ok, the script will exit with no problems.

This is happening when the first parameter is passed as literal string, but strangly not when drive letter is passed without a back slash (""C:"", ""D:"" etc.), without it the script exits ok.

Here is few tests that showing strange results:

'''Not Exits'''
{{{
$sVar = ""c:\""
ShellExecute($sVar)
Exit
}}}

'''Not Exits'''
{{{
ConsoleWrite(@HomeDrive & @LF)
ShellExecute(@HomeDrive)
Exit
}}}

'''Exits'''
{{{
ShellExecute(@HomeDrive)
Exit
}}}

'''Not Exists'''
{{{
ShellExecute(@HomeDrive & ""\"")
Exit
}}}


----


'''AutoIt:3.3.6.0   (Os:WIN_XP/X86/Service Pack 3   Language:0419 Keyboard:00000409 Cpu:X64)'''"	Bug	closed		AutoIt	3.3.6.0	None	Works For Me		
