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 |
We have 10 page.In first page we 2 popup and next page we 3 popup window......(windows name is different)how can we handle the all the popups without using recovery scenario
Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in
What is the process for creating an automated test script using QTP assuming you have reviewed the manual test case and understand the requirements?
How will you handle application crash using recovery scenario manager(step by step process)?
How did u write macros?What is the main importance of VB macros in testing environment?
In a webpage how to check the dynamic links that re changing regularly?( without using regular expressions.)
I am new with QTP. Is anybody could tell me where I can find a good tutorial with lots of samples?
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.
hi to all, i need a code.. in flight application 1.i need to login first then i need to insert 3 new orders... 2.i have to log out 3.i have to login again with different user 4.need to insert 2 new orders 5.then need to log out 6.then again login with different user 7.3 new orders create and log out 8.but we hv to do this using data table and actions please help me
how can i parameterize a login page by using database parameterization i fetch the username and password from database and put this on login page and click on ok button. so how can we write script for that code please let me know asap thanks
A web page title might be xxxx@xyz.com or xxxy@xxx.co or xyz@abc.in.Using what mandatory properties can be the page identified.Give the regular expression for that.
Batch testing in howmany ways u perfrom in QTP