Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot identify Object "Notepad" error
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Bostonma,
Check this out:
Code:
Option Explicit

Const conForReading = 1

'Declare variables
Dim objFSO, objReadFile, contents

'Set Objects    
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objReadFile = objFSO.OpenTextFile("C:\Temp\TextToRead.txt", 1, False)

'Read file contents
contents = objReadFile.ReadAll

'Close file
objReadFile.close

'Display results
wscript.echo contents

'Cleanup objects
Set objFSO = Nothing
Set objReadFile = Nothing

'Quit script
WScript.Quit()
Reply


Messages In This Thread
RE: Cannot identify Object "Notepad" error - by manishbhalshankar - 04-28-2010, 10:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  not able to identify an webelement object Ninjukp 0 2,230 01-10-2018, 09:25 PM
Last Post: Ninjukp
  General Object Error(Find Object Error) akhandesh 1 3,613 02-24-2016, 01:05 PM
Last Post: sindhus
  Not Able to Identify Object during Recovery Scenario Phani 2 3,342 01-25-2016, 01:26 PM
Last Post: arunshuklainbox
  UFT 12.02 Compatibility for IE 11.0 : Fail to identify the defined Object Amruta_121 9 11,194 01-11-2016, 12:45 PM
Last Post: vinod123
  Can not identify this object. Please help. axn700 3 3,246 10-31-2015, 10:59 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 3 Guest(s)