How to get Last Accessed date and time of a particular folder?
Dim a,b,c
Set a = CreateObject("Scripting.FileSystemObject")
Set b = a.GetFolder("C:\QTP")
c= "Folder was Accessed last on: " & b.DateLastAccessed
MsgBox(c)
Showing posts with label qtp-vbscript. Show all posts
Showing posts with label qtp-vbscript. Show all posts
QTP Script to Get Accessed Date and Time of a Folder-VB Script to Get Accessed Date and Time of a Folder
QTP Script to delete folder-VB Script to delete folder in system-Delete Folder QTP Script-QTP File System Object
dim a
set a=createobject("scripting.filesystemobject")
a.deletefolder("d:\\xyz")
MsgBox("Folder Deleted")
Qtp script to return year from specified date-vbscript year function-script in qtp to display year from specified date-scripts in qtp-vbscript
Returns a whole number representing the year
Dim a
a=Year(Now)
Msgbox a
Output-2011
Dim a
a=Year("June 16, 2020")
Msgbox a
Output-2020
qtp script to return month of the year-vbscript Month function-script in qtp to display month of the year-qtp scripts-scripts in qtp-vbscript and qtp
Returns a whole number from 1 to 12
Dim a
a=Month(Now)
Msgbox a
Output-6
QTP script to return minute of the hour-script in qtp to print minute of the hour-vbscript function examples-Minute function example(VBScript)
Returns a whole number from 0 to 59
Dim a
a=Minute(Now)
Msgbox a
Output-5
Subscribe to:
Posts (Atom)