|
FilePath="C:\InputData\"
FileName="保管点维"
SetDmw FilePath,FileName
Function SetDmw(FilePath,FileName)
Set FSO=CreateObject("Scripting.FileSystemObject")
fullPath=FilePath&FileName&".txt"
Set objTextFile=FSO.OpenTextFile(fullPath,forReading,TristateUseDefault)
strText=objTextFile.ReadAll
objTextFile.Colse
Browser("BI@Report 2.0").Page("BI@Report 2.0").Frame("Frame_5").WebEdit("index=0")=strText
Browser("BI@Report 2.0").Page("BI@Report 2.0").Frame("Frame_5").Link("innertext:=保存").Click
End Function
运行到Set objTextFile=FSO.OpenTextFile(fullPath,forReading,TristateUseDefault)出错 |
|