文件系统对象 - QTP无法在桌面上打开文件

时间:2015-07-25 10:45:25

标签: qtp filesystemobject

Set  fso = CreateObject("Scripting.FileSystemObject")

set t  = fso.CreateTextFile("C:\Users\manisha\Desktop\My.txt",True)

Set t = fso.OpenTextFile("C:\Users\manisha\Desktop\My.txt", 1)

1 个答案:

答案 0 :(得分:0)

试试这个--->

set fso = CreateObject("scripting.filesystemobject")
set file1 = fso.createtextfile("C:\rahul1.txt" , True , false)