Drag & Drop File Parsing Issue

Report problems with documented functionality
Guest

Drag & Drop File Parsing Issue

17 Nov 2016, 02:39

Code: Select all

Loop, %0% {
	List1 .= %A_Index% "`n"
	Loop, Files, % %A_Index%, % "DF"
		List2 .= A_LoopFileLongPath "`n"
}
MsgBox % List1 "`n" List2
AHK: Windows 7 Output:

Code: Select all

C:\TEST_F~1.TXT
C:\TESTFI~1.TXT

C:\test_file.txt
C:\test file.txt
AHK: Windows 8/8.1/10 (unexpected) Output:

Code: Select all

C:\test_file.txt
C:\test
file.txt

C:\test_file.txt
Compiled sctipt works properly in 7/8/8.1/10:

Code: Select all

C:\test_file.txt
C:\test file.txt

C:\test_file.txt
C:\test file.txt
Not sure if this is a bug.
  1. AHK Drag & Drop is enabled
  2. Short Name Creation (8.3) is enabled
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: Drag & Drop File Parsing Issue

17 Nov 2016, 03:56

AutoHotkey just plays the hand it's dealt: the system passes it three parameters (C:\test_file.txt, C:\test and file.txt), so it assigns those three parameters to variables.

Anyway, I am unable to reproduce your problem with v1.1.24.02 on Windows 10.0.14393 (aka "version 1607"). I get the short names.

Maybe you are mistaken about short name creation being enabled, or it is enabled but no short name has been created for those files.

See also Parameters Passed Improperly.
Guest

Re: Drag & Drop File Parsing Issue

17 Nov 2016, 07:27

lexikos wrote:Maybe you are mistaken about short name creation being enabled, or it is enabled but no short name has been created for those files.
Thank you, there are no short names for those files actually. Is there a way to force short name creation for old files/folders?
Guest

Re: Drag & Drop File Parsing Issue

17 Nov 2016, 07:28

lexikos wrote:Maybe you are mistaken about short name creation being enabled, or it is enabled but no short name has been created for those files.
Thank you, there are no short names for those files actually. Is there a way to force short name creation for old files/folders?

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 52 guests