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 |
How many number of actions possible in qtp?
What are table and db checkpoints?
Using Regular expression method some particular value is not present in given value. HOow do use regular expression? Forexample password all number,character ,special character are accepted but (_',)underscore,comma are not used. How do write regular expression.
What type of VB script u had done in expert view?
Can anybody give the script of below things. 1. Add sheet 2. Adding columns 3. Set the values in that columns(In the rows) 4. Close the sheet 5. How can we create 3 sheets in one Excel sheet??
How to add verification steps to tests?
When I parameterize a script then for each iteration script is executed from begining to end. If I want to execute some middle steps multiple times using Parameterization (avoiding begining and end steps), what is the solution of this (e.g. total steps are 1 2 3 4 5 and i want 2 3 4 only(not 1 nd 5)
How often were they executed?
Is it possible to call out to Java from QTP?
If an application name is changing frequently i.e while recording it has name “Window1” and then while running its “Windows2” in this case how does QTP handle?
How to run a test using quicktest professional?
1...HOW MANY TYPES OF OBJECT REPOSITORY ARE THERE IN QTP? 2....WHAT ARE THE REPOSITORY FEATURES EXPLAN. 3...HOW TO CREATE A RECOVERY SCENARIO? WHAT DOES RECOVERY SCENARIO MANAGER DO? 4...OPEN A WORD FILE AND MODIFIED WITH SOME VALUE USING QTP? 5... HOW TO CREATE EXCEL FILE USING QTP? 6... HOW TO RETRIEVE A VALUE FROM WEB TABLE? 7... WHAT IS QC REQUIREMENT TAB DO ? HOW TO MAP THE REQUIREMENT? 8... HOW TO PASS A VALUE FROM EXCEL FILE TO SCRIPT? 9...WHAT IS THE USE OF SPLIT FUNCTION?