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 |
Hi, Can anyone help me with: How to select a value from combobox and check the checkbox and set the filter. I have to set a filter by selecting a value from dropdown. Also, im using UFT 11.5 so can anyone help me with code for UFT. Thanks Sreevidya
Where you get the run time data table?
When you are running a batch test of 5 scripts and in 2nd script appln crashed, what hpns then?
Hi, i have a string like "INDIA". I need to display this string vertically in Msgbox?
In qtp,how to interact tool & application build?
What is meant by virtual obj and Y do v need virtual obj configuration.
what testing activities u may want to automate?
wht is Manual Testing Frame work. Pls anybody can give appropriate answers
how to get the data from a winedit box in vb scripting and store it in a variable if data contains "_"(i.e data is TEST_1)
How i can change shared repository to per test repository in qtp
How to manage a drag drop event in the qtp
How we can do Batch testing in QTP?