au3_FileListToArray函數(shù)時,可以使用UBound函數(shù)來獲取數(shù)組的元素數(shù)量

admin AutoIt3評論685字?jǐn)?shù) 207閱讀模式
#include <File.au3>
Local $sPath = "C:\MyFolder"
Local $aFiles = _FileListToArray($sPath)
MsgBox(0, "Number of files", UBound($aFiles))

在上面的示例中,_FileListToArray 函數(shù)將指定路徑下的文件列表存儲在 $aFiles 數(shù)組中。然后,使用 UBound 函數(shù)來獲取數(shù)組的元素數(shù)量,并將其顯示在消息框中。 文章源自網(wǎng)吧系統(tǒng)維護(hù)-http://www.ykday.cn/10569.html

版權(quán)聲明:文章圖片資源來源于網(wǎng)絡(luò),如有侵權(quán),請留言刪除!!!
廣告也精彩
admin
  • 本文由 發(fā)表于 2023年5月6日 23:28:23
  • 轉(zhuǎn)載請務(wù)必保留本文鏈接:http://www.ykday.cn/10569.html
匿名

發(fā)表評論

匿名網(wǎng)友 填寫信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: