【软件自动化测试 - VBScript 5】== Get the recently createed Folder or a File in a Parent Folder
来源:互联网 发布:sql2000数据库置疑修复 编辑:程序博客网 时间:2024/04/29 11:55
Set objFileSysOb = CreateObject("Scripting.FileSystemObject")
Set colFolderName = objFileSysOb.GetFolder("Give your Parent Folder path here")
Set vFiles =colFolderName.Files
dim f, datecreated, lastfilename
For each i in vFiles
d = Split(i,"\")
FileName=d(ubound(d))
f = objFileSysOb.GetFile(FileName)
if datecreated = "" then
datecreated = f.DateCreated
lastfilename = FileName
else
'check lastdate to current file
if datecreated < f.DateCreated then
datecreated = f.DateCreated
lastfilename = FileName
end if
end if
Next
msgbox "Last file created was " & lastfilename
- 【软件自动化测试 - VBScript 5】== Get the recently createed Folder or a File in a Parent Folder
- Displaying the 'Properties' of a file or folder.
- The folder is already a source folder
- The folder is already a source folder
- get file's name from a folder using Java
- 【软件自动化测试-QTP实战技能 20】== QTP_ Delete files from Temp Folder:删除Folder
- C# Get a folder or file list which finished sequence line. 直接得到 排序后 的 文件列表
- Cannot delete file or folder in windows
- Use matlab to traverse the files in a folder
- How to Take Ownership of a File/Folder Using Command-Line in Windows 7 or newer version System
- Eclipse中创建Maven项目时,报错提示:“a pom xml file already exists in the destination folder ”
- Read all files in a folder
- Copy file or folder path to the clipboard in Mac OS X Lion
- How to unzip a zip file which include a folder into a folder
- gen already exists but is not a source folder. Convert to a source folder or
- /gen already exists but is not a source folder. Convert to a source folder or rename
- Select a Folder
- creat a secret folder
- 数据操纵:select, insert, update, delete
- Command - xdc
- PHP 5.3.6源码编译过程中报错的处理
- Android画图Path的使用
- Map控件的简单使用
- 【软件自动化测试 - VBScript 5】== Get the recently createed Folder or a File in a Parent Folder
- hdu 1073 Online Judge(4)
- 关于学习基础学科与培养编程能力的问答
- Tomcat Oracle数据库连接池设置与使用
- iPhone, iPad, iPod – HTTP Live Streaming (HLS) with free tools on Windows
- java.lang.NoSuchMethodError: antlr.collections.AST.getLine()I 解决方法
- python与oracle(三)数据类型
- tomcat 配置ORACLE XE数据库连接池
- Proteus和Keil的使用与联调