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 we display the names of the buttons in the toolbar of a webpage
What is the file extension of the code file in qtp?
WHAT IS PARAMITARIZATION?
What is the difference between Mandatory and BaseFilter Properies..Anybody please answer me..Thanks in Advance
1. In build1 there is a page with two check boxes and a submit button. You have prepared a script for that page and its working fine. In Build 2 the developers have added two checkboxes in the page. Will the script prepared for Build 1 work for Build 2 or not. If yes, why and if No, why. Remember the developers have not touched the object properties of the textboxes in the page.
what is supply chain management?
Is it mandatory to know abt regular expression in descriptive programming
Tell when we call the function? tell with example.
In Login two edit box which object class property value is same, How to enter into 2nd edit box in qtp by vbscript.
does qtp runs on internet explorer 7.0
How to verify the Cursor focus of a certain field?
what is the recovery scenario?