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 |
How can you identify the browser and its information using QTP script?
how to test Web application using QTP software
What is your role and responsibilities in QTP with your current organization?
A question was asked in a company-suppose, I am testing a website on QTP, all the time a new title bar is appeared on next page. Trying to use regular expression under key word driven testing but expert view is also appearing unchanged and error is also generating, do you have any best resolution for that kindly explain in detail. please dont give example of yahoomail, that is unable to clear my doubt.
If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?
I have a library function , with that function 100 scripts are being called. The library function is changed(something is added) . how do i update all the scripts.
I have 1 to 10 action are there, i want action1 output becomes to action 10 input? pls any can give script for this scenario?
what is the hierarchy to use properties in descriptive programming
hen do start automation testing after manual testing
how can we call an external library file in QTP apart from using the Executefile statement..?? is there any other way we can call the external library file in QTP..??
2 Answers DST Global Solutions,
how i can delete the excel process for the task manager using QTP
What are different versions in Win Runner ,QTP ,Load Runner and Test Director till now and atleast please let me know new features for each version. Ex QTP8.2,QTP 8.5.QTP9.2 supports Mozilla 2.0