Custom Query (3910 matches)
Results (364 - 366 of 3910)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #2384 | Fixed | UDPRecv() and TCPRecv() not setting @error correctly in some instances. | ||
| Description |
See: http://www.autoitscript.com/forum/topic/153709-udprecv-bug/ |
|||
| #2405 | Fixed | Possible issue with FileGetVersion. | ||
| Description |
FileGetVersion says that this will return the version of the autoit that was used to compile the exe: FileGetVersion(@AutoItExe, "CompiledScript") So I compiled the following script and ran it but got nought on 3.3.9.18. #include <Constants.au3> MsgBox($MB_OK, '', FileGetVersion(@AutoItExe, "CompiledScript") & @CRLF) Have I simply misunderstood? |
|||
| #2453 | Fixed | FileFindNextFile can find not-matching mask files if non-English letters presented in the file name | ||
| Description |
It seems windows bug/feature, but still... it affect results of FileListToArray To reproduce - run in Unicode: #include <Array.au3>
#include "File.au3"
$path = 'd:\12345' ;folder with is used to create files
$files = StringSplit("file.txt|file1.txt|file2.txt|prefix_file.txt|йfile.txt|начало file.txt|начало_file.txt|йfilйe.tйxt", "|")
FileChangeDir($path)
For $i = 1 To UBound($files) - 1
_FileCreate($files[$i])
Next
$FileList1 = _FileListToArray($path, 'file*.txt')
_ArrayDisplay($FileList1, 'Find Files')
For $i = 1 To UBound($files) - 1
FileDelete($files[$i])
Next
Alternative: Func _FileListToArrayEx($sPath, $sFilter = "*", $iFlag = 0)
Local $hSearch, $aResult, $sFile, $sFileList, $sDelim = "|"
$sPath = StringRegExpReplace($sPath, "[\\/]+\z", "") & "\"
If Not FileExists($sPath) Then Return SetError(1, 1, "")
If StringRegExp($sFilter, "[\\/:><\|]|(?s)\A\s*\z") Then Return SetError(2, 2, "")
If Not ($iFlag = 0 Or $iFlag = 1 Or $iFlag = 2) Then Return SetError(3, 3, "")
$hSearch = FileFindFirstFile($sPath & '*')
If @error Then Return SetError(4, 4, "")
While 1
$sFile = FileFindNextFile($hSearch)
If @error Then ExitLoop
If ($iFlag + @extended = 2) Then ContinueLoop
$aResult = DllCall('shlwapi.dll', 'int', 'PathMatchSpecW', 'wstr', $sFile, 'wstr', $sFilter)
If (Not @error) And ($aResult[0]) Then $sFileList &= $sDelim & $sFile
WEnd
FileClose($hSearch)
If Not $sFileList Then Return SetError(4, 4, "")
Return StringSplit(StringTrimLeft($sFileList, 1), "|")
EndFunc ;==>_FileListToArrayEx
|
|||
Note:
See TracQuery
for help on using queries.
