Atitit 遍历文件夹算法 autoit attilax总结
来源:互联网 发布:js 当前页面url 编辑:程序博客网 时间:2024/06/05 18:01
Atitit 遍历文件夹算法 autoit attilax总结
_FileListToArray
Lists files and\or folders in a specified folder (Similar to using Dir with the /B Switch)
#include <File.au3>
_FileListToArray ( $sFilePath [, $sFilter = "*" [, $iFlag = $FLTA_FILESFOLDERS [, $bReturnPath = False]]] )
Parameters
$sFilePath
Folder to generate filelist for.
$sFilter
[optional] the filter to use, default is *. (* and ? wildcards accepted - See Remarks)
$iFlag
[optional] specifies whether to return files folders or both
$FLTA_FILESFOLDERS (0) = (Default) Return both files and folders
$FLTA_FILES (1) = Return files only
$FLTA_FOLDERS (2) = Return Folders only
Constants are defined in FileConstants.au3
$bReturnPath
[optional] If True the full path is appended to the file\folder path, otherwise it is relative to the $sFilePath folder. Default is False.
Return Value
Success:
A one-dimensional array.
$aArray[0] = Number of Files\Folders returned
$aArray[1] = 1st File\Folder
$aArray[2] = 2nd File\Folder
$aArray[3] = 3rd File\Folder
$aArray[n] = nth File\Folder
Failure:
sets the @error flag to non-zero.
@error:
1 - Folder not found or invalid
2 - Invalid $sFilter
3 - Invalid $iFlag
4 - No File(s) Found
#include <Array.au3>
#Include <File.au3>
$path="C:\Users\Administrator.ATTILAXPC188\Documents\r2d"
$filelist = _FileListToArray ($path)
ConsoleWrite("-----ret")
ConsoleWrite(UBound( $filelist))
For $i=0 To UBound( $filelist)-1
ConsoleWrite($filelist[$i]&@CR&@LF)
next
ConsoleWrite (" ex:"&@error)
ConsoleWrite("-----end")
Func aa()
EndFunc
Ahk
;filelist
#Persistent
; C:\d\AutoHotKey\AutoHotkey.exe C:\0workspace\atiplat_eeJS\systray\filelist.ahk
; $path="C:\Users\Administrator.ATTILAXPC188\Documents\r2d"
Loop,C:\Users\Administrator.ATTILAXPC188\Documents\r2d\*.*,,1
{
;msgbox,%A_LoopFileName%
msgbox,%A_LoopFileFullPath% ;full path of file
;%A_LoopFileName%
}
作者:: 绰号:老哇的爪子claw of Eagle偶像破坏者Iconoclast image-smasher
捕鸟王"Bird Catcher kok 虔诚者Pious宗教信仰捍卫者 Defender Of the Faith.卡拉卡拉红斗篷 Caracalla red cloak万兽之王
简称:: Emir Attilax Akbar 埃米尔 阿提拉克斯 阿克巴
全名::Emir Attilax Akbar bin Mahmud bin attila bin Solomon bin adam Al Rapanui埃米尔 阿提拉克斯 阿克巴 本 马哈茂德 本 阿提拉 本 所罗门 本亚当 阿尔 拉帕努伊
常用名:艾提拉(艾龙), EMAIL:1466519819@qq.com
头衔:uke总部o2o负责人,全球网格化项目创始人,
uke交友协会会长 uke捕猎协会会长Emir Uke部落首席大酋长,
uke宗教与文化融合事务部部长, uke宗教改革委员会副主席
uke制度与重大会议委员会委员长,uke保安部首席大队长,uke制度检查委员会副会长,
uke 首席cto 软件部门总监 技术部副总监 研发部门总监主管 产品部副经理 项目部副经理 uke科技研究院院长uke软件培训大师
uke波利尼西亚区大区连锁负责人 汤加王国区域负责人 uke克尔格伦群岛区连锁负责人,莱恩群岛区连锁负责人,uke布维岛和南乔治亚和南桑威奇群岛大区连锁负责人
Uke软件标准化协会理事长理事长 Uke数据库与存储标准化协会副会长
uke终身教育学校副校长 Uke医院 与医学院方面的创始人
uec学院校长, uecip图像处理机器视觉专业系主任 uke文档检索专业系主任
Uke图像处理与机器视觉学院首席院长
Uke 户外运动协会理事长 度假村首席大村长 uke出版社编辑总编
转载请注明来源:attilax的专栏 ?http://blog.csdn.net/attilax
--Atiend v8
- Atitit 遍历文件夹算法 autoit attilax总结
- Atitit 编程语言常用算法attilax总结
- atitit.高性能遍历 文本文件行 attilax总结
- Atitit.遍历图像像素点rgb java attilax总结
- 【AutoIt】文件夹遍历
- atitit.安全的签名摘要 算法attilax总结
- Atitit 图像处理30大经典算法attilax总结
- Atitit Seed-Filling种子填充算法attilax总结
- Atitit js nodejs 图像处理压缩缩放算法 attilax总结
- atitit 项目注册功能算法attilax总结.docx
- atitit.LimeSurvey 安装 attilax 总结
- Atitit 软件工程概览attilax总结
- Atitit 转移特效attilax总结
- Atitit 财政支出学习心得 attilax总结
- Atitit diy战略 attilax总结
- Atitit 分期理论 attilax总结
- Atitit.数据库事务隔离级别 attilax 总结
- atitit.资源释放机制--attilax总结
- ubuntu14.04.1 LTS 64bits较快的更新源
- JAVA注解的实际应用--生成sql语句
- TCP 偶尔出现connection refused
- js中 this 的指向
- Jvm原理剖析与调优之内存结构
- Atitit 遍历文件夹算法 autoit attilax总结
- Rust : 为什么没有lifetime是不行的?
- 中大双日游——GDKOI2017
- ProgressBar的圆形进度和水平进度的使用
- Codeforces 768A Oath of the Night's Watch
- D3D11地形渲染教程十九之Foliage(植被的渲染)
- HTML标签----图文详解
- 在github上fork的相关操作
- 第十七章 集合Collection 1