Atitit 遍历文件夹算法 autoit attilax总结
2017-02-21 22:09
405 查看
Atitit 遍历文件夹算法 autoit attilax总结
#include <File.au3>
_FileListToArray ( $sFilePath [, $sFilter = "*" [, $iFlag = $FLTA_FILESFOLDERS [, $bReturnPath = False]]] )
#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.s.net/attilax
--Atiend v8
_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 = 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 <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.s.net/attilax
--Atiend v8
相关文章推荐
- atitit 项目注册功能算法attilax总结.docx
- Atitit 图像处理30大经典算法attilax总结
- Atitit.java图片图像处理attilax总结 BufferedImage extends java.awt.Image获取图像像素点image.getRGB(i, lineIndex); 图片剪辑/AtiPlatf_cms/src/com/attilax/img/imgx.javacutImage图片处理titit 判断判断一张图片是否包含另一张小图片 atitit 图片去噪算法的原理与
- Atitit 图像处理30大经典算法attilax总结
- Atitit.遍历图像像素点rgb java attilax总结
- Atitit 图像清晰度 模糊度 检测 识别 评价算法 源码实现attilax总结
- atitit.nfc 身份证 银行卡 芯片卡 解决方案 attilax总结
- atitit.html编辑器的设计要点与框架选型 attilax总结
- atitit.attilax.com产品 软件项目通用框架类库总结
- Atitit. 软件设计 模式 变量 方法 命名最佳实践 vp820 attilax总结命名表大全
- atitit.项目设计模式---ioc attilax总结
- Atitit.angular.js 使用最佳实践 原理与常见问题解决与列表显示案例 attilax总结
- Atitit. 状态模式(State)attilax 总结 跟个策 略模式的区别
- atitit.自己动手开发编译器and解释器(2) ------语法分析,语义分析,代码生成--attilax总结
- atitit.系统架构图 的设计 与工具 attilax总结
- Atitit.request http乱码的设计防止 检测与解决最近实践p825 attilax总结.doc
- Atitit.angular.js 使用最佳实践 原理与常见问题解决与列表显示案例 attilax总结
- atitit.手动配置列表文件的选择and 数据的层次结构 attilax总结最佳实践--yaml
- atitit.印度教与java宗教的特点与观念对比 attilax总结