A simple function which returns the first matching path for a specified wildcard, if exists. UNC paths are not supported. The name of the drive must be specified obviously.   ConsoleWrite(_GetAppropriatePath('C:\Program*\AutoIt*\AutoIt*.exe') & @CR) ConsoleWrite(_GetAppropriatePath('C:\*\System??\user??.dll') & @CR) ConsoleWrite(_GetAppropriatePath('C:\???????\explorer.exe') & @CR) ConsoleWrite(_GetAppropriatePath('C:\*\Fon*\') & @CR) Func _GetAppropriatePath($sPath, $iLevel =