Public Function FindNotepad()
oBjFolderLocation = "C:\COPEPerlAutomationExecution"
oBjFile Name = "SubfileName.txt"
oBjFileLocationOutSideTestData = Environment.Value("OutSideViwerAutoFolderPath") & "\" & "OutSiderViewerSubfileName.txt"
Msgbox oBjFileLocationOutSideTestData
Set FSOj = CreateObject("Scripting.FileSystemObject")
If (FSOj.FileExists(oBjFileLocationOutSideTestData) = True) Then
Msgbox "Hi"
Set oFRead = FSOj.OpenTextFile(oBjFileLocation,ForReading,True)
Do until oFRead.AtEndOfStream
oFRd = oFRead.Readline()
Msgbox oFRd
loop
MyValue1 = strcomp(oFRd,myfile,0)
If Myvalue1 = 0 Then
Do until oFRead.AtEndOfStream
mysubfileread = oFRead.Readline()
End if
End If
End Function
No comments:
Post a Comment