10-19-2012, 11:37 AM
Try the below
Code:
TS = replace(replace(replace(now() , "/" , "_") , ":" , "_") , " " , "_")
Set objFileSystemObject = CreateObject("Scripting.FileSystemObject")
path1="D:\QTP_R22\DDF\Report\gsReportFile_"&TS& ".html"
Set objTextFileObject= objFileSystemObject.CreateTextFile(path1,True)