Time Stamp
2 posters
Re: Time Stamp
To know when was the file last modified you can use the below code:
msgbox FileLastModified("C:\vbdll.xml")
'************************************************
Function FileLastModified(sFilePath)
Set fso = createobject("scripting.filesystemobject")
FileLastModified = fso.GetFile(sFilePath).DateLastModified
End Function
'************************************************
Can you please elaborate on what exactly you meant by "Can we check the status of the file"
msgbox FileLastModified("C:\vbdll.xml")
'************************************************
Function FileLastModified(sFilePath)
Set fso = createobject("scripting.filesystemobject")
FileLastModified = fso.GetFile(sFilePath).DateLastModified
End Function
'************************************************
Can you please elaborate on what exactly you meant by "Can we check the status of the file"
Time Stamp
Hi Sir,
Can we check the status of the file and when it is last modified by using the date?
Can we check the status of the file and when it is last modified by using the date?
sriharish2- Posts : 8
Join date : 2012-10-31
Permissions in this forum:
You cannot reply to topics in this forum
Thu Jun 19, 2014 11:31 am by thomasdfg
» How to identify the object when it is dynamically changing behavior
Wed Jun 18, 2014 6:37 pm by thomasdfg
» Patches for QTP 10, 11, 11.5
Wed Jun 18, 2014 6:04 pm by thomasdfg
» Retrieving data from Txt file into datatable
Wed Jun 18, 2014 5:32 pm by thomasdfg
» VB Script to count number of links in a web page.
Wed Jun 18, 2014 4:51 pm by thomasdfg
» Customized HTML reports in QTP
Wed Jun 18, 2014 4:42 pm by thomasdfg
» how to print values into a field of a web page, from a data table in qtp?
Wed Jun 18, 2014 4:37 pm by thomasdfg
» How to delete cookies using QTP?
Wed Jun 18, 2014 4:30 pm by thomasdfg
» When UFT Does Not Identify an Object
Wed Jun 18, 2014 4:23 pm by thomasdfg