#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),請留言刪除!!!
評論