I want to open a Notepad window without recording a
test and I do not want to use SystemUtil.Run command as
well How do I do this?
Answers were Sorted based on User's Feedback
Answer / sathishkumar
You can open the notepad by using the below code:
Invokeapplication "notepad.exe"
Is This Answer Correct ? | 6 Yes | 1 No |
Answer / ravi
Dim s
Set s= create object("wscript.shell")
s.run"notepad"
set s= nothing
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / mukesh
hi,
u can open a Notepad by using record and run setting for
windows application ( there u can give the path of
notepad.exe) and also by invokeapplication method
there u have to give the physical path of notepad
for ex (c://programfiles/.....)
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / chaitu
You can open the Notepad through this method also
Set Notepad = CrateObject("Notepad.Application")
Notepad.visible = Ture
Set Notepad = Nothing
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / ravindra
Setfso = CrateObject("scripting.filesystem object")
setf=fso.opentextfile("path of that notepad file",mode of
file,value)
while (f.end of line)<>true
x=f.readline
some statements
f.close
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / tvs ramakrishna chowdary
what ever Ravi said that is obsolutly 100% correct..
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / indra
Set fso = CreateObject("Scripting.FileSystemObject")
fso.OpenTextFile("c:\testfile.txt", ForWriting, True)
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ram.polavarapu
dim ws
set ws=createobject("wscript.shell")
ws.run"notepad.exe"
Is This Answer Correct ? | 0 Yes | 0 No |
Suppose there are 10 browsers opened on desktop. I want to close all browsers except one browser in QTP. Can any one give the code for this?
Which statement will use for close an action in QTP?
why can't you use excel directly in qtp. why we want to import excel data into Datatable.
Is it mandatory to know abt regular expression in descriptive programming
what is object spy
How can I replace all the text from the QTP script with some other text. Is there any replace all function in QTP Any one can help me
Can we use Virtual Objects in Discriptive Programming?
How to change the run-time value of a property for an object?
What is the difference between driver-script and AOM-script?
What is the difference between Systemutil.run and Navigate.
How many types of Parameters are available in QTP?
Hi, one script having 10 Actions,but i want to execute only 3rd action and 7th action? how to execute selected actions? throgh script and through navigation?