Code: Select all
Loop, Files, *.csv
MsgBox, %A_LoopFileName%
i think *.csv means match 1.csv not 1.csvabc
but they can both match
is a bug?
Code: Select all
Loop, Files, *.csv
MsgBox, %A_LoopFileName%
Code: Select all
#Requires AutoHotkey v1.1.33.02
for each, ext in ["csv", "csvabc"]
FileOpen("1." ext, "w")
Loop Files, *.csv
MsgBox % A_LoopFileName
Edit registry, set this value to 1, disable 8dot3Name, and reboot windows, it's ok now!HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation
If you didn't recreate the files, they should still have 8dot3 names, so *.csv would still match the previously existing .csvabc files.Changing this value does not change the file, but it does change the way that NTFS displays and manages the file. Also, files are named according to whatever rule is specified by this entry at the time of their creation; changing this entry does not alter the names of existing files.
Source: NtfsDisable8dot3NameCreation: Core Services | Microsoft Docs
To be precise, it depends only on whether short names exist for the relevant files. The current setting of 8dot3names affects file creation, not the matching of file patterns.TAC109 wrote:This Windows 'effect' as described by the OP depends on whether 8dot3names is switched on or not for the disk containing the relevant files.