write a qtp script to see time in windows command prompt?
its urgent....
Answers were Sorted based on User's Feedback
Answer / shashikala
Dim s
set s=createobject("WSCript.Shell")
s.run "cmd /k date"
set s=nothing
Using The above code we can get the date in command prompt
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / brahma
getdate():Using this function we can get Date& Time
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / shashikala
Hi
" cmd/K is one of the switches avaliable with the cmd.exe"
For Example:
/C Switch : This switch loads a session of ‘cmd.exe’ into
memory, executes the command specified after /C and
terminates the cmd session.
/K Switch : This creates a new command session and
executes the date command, the session is not terminated
after completion of the command.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / manjunath dasari
dim a
a=now
msgbox a
displays time & date
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / manu
hi all,
i m getting some problem in closing the cmd prompt using
winrunner.
I am invoking some java programes using winrunner that will
pen a cmd promp and execute the commands till that time i
want winrunner to wait, but its not recognizing the cmd window.
If anybody has any solutin pls let me knw.
Thanks
Manu
manu_bans2710@yahoo.com
Is This Answer Correct ? | 0 Yes | 0 No |
in order to start automation testing what we should require (entry level to automation testing)
How to get line numbers in your editor in expert view?
is qtp 9.2 supported for firefox browser3.0?bcoz when i tried to create scripts with the application run on firefox browser 3.0 then qtp 9.2 didn't ct=reate the scripts?
Did QTP prove efficient for your project? Yes or No, explain?
1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?
How to compare the two strings?
Which version of QTP is using by companies nowadays?
how to read log file using QTP??
Hi, I am supposed to automate mainframe application through qtp. I do not know how to start abt it. Can you plz help me in first initializing the process or do you anybody have a guide book or a link which guides me through the process of automating the mainframe applications and things involved in it.
What r types of parametarizations?
Hi, every one aim new to automation testing(QTP),aim looking for software versions any. If any one can HELP me that will be great. Thank u.(9620427211,Bangalore)
In Object Repository, two actions r there. Action1 name is A.tsr, Action2 name is B.tsr. Is it Possible? if Yes, what is the out put of A+B? if No, why?