write a qtp script to see time in windows command prompt?
its urgent....

Answers were Sorted based on User's Feedback



write a qtp script to see time in windows command prompt? its urgent......

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

write a qtp script to see time in windows command prompt? its urgent......

Answer / brahma

getdate():Using this function we can get Date& Time

Is This Answer Correct ?    4 Yes 1 No

write a qtp script to see time in windows command prompt? its urgent......

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

write a qtp script to see time in windows command prompt? its urgent......

Answer / manjunath dasari

dim a
a=now
msgbox a
displays time & date

Is This Answer Correct ?    1 Yes 0 No

write a qtp script to see time in windows command prompt? its urgent......

Answer / nani

Hi Brahma By using this function we can get date in qtp.
but i want to see date in command prompt.
if u know the answer plse let me know.

Is This Answer Correct ?    1 Yes 1 No

write a qtp script to see time in windows command prompt? its urgent......

Answer / nani

Thx Shashikala,
wt is cmd/k.
i think cmd means command prompt but wt abt k?

Is This Answer Correct ?    0 Yes 0 No

write a qtp script to see time in windows command prompt? its urgent......

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

write a qtp script to see time in windows command prompt? its urgent......

Answer / raju

set a=createobject("wscript.shell")
a.run "command"
a.sendkeys "time"
wait(5)
a.sendkeys "~"
a.sendkeys "Exit"

i this script working. if at all any quarries please send
me mail
raju.ippali@gmail.com
9823257761

Is This Answer Correct ?    1 Yes 2 No

write a qtp script to see time in windows command prompt? its urgent......

Answer / nani

Hi Shashikala thank u.
wr ru working?

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

What are the ways you can synchronize?

0 Answers  


What is Data driven Testing Frame work.Anybody can expain it in Detail.. Pls anybody can give the answer.. Thanks in advance...

1 Answers   Navis,


What is Test Fusion Report in QTP?

0 Answers  


In 1st screen,if v enter a/c no. in one field, the information of the subscriber will be displayed. The details should be displayed only in screen 3(NOTE:details should not display in screen 2).How can v do using QTP.

2 Answers   BirlaSoft, TCS,


How will you enchance the script?

1 Answers  






i am testing an online shopping application.I CLICK on a link "ADD TO CART" of that application a "new page" is open and then click on any object of that "new page". after that when i run this SCRIPT then on this "new page" QTP always shows error of "OBJECT NOT FOUND". How i solve this problem ?

4 Answers  


write script for "dropdown button having how many words? for ex.SELECT CITY is dropdown name.. find out how many cities in that?

1 Answers  


1>How to get the browser name by writing the VBScript. 2>How did you used the GetROProperty and GetTOproperty .give real time scenario. 2>Give and real time ex for the bug having "High Severity and low priority"on banking doamin web based application.

2 Answers   Nous,


I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”

0 Answers  


how to invoke the web application through script in qtp

11 Answers   IBM,


In Descriptive programing if i use this below code will it work for login window or flight Res Window. Shud i add the properties like attached text=login and text=Agent Name in the object repository and define a new object first. Pls tell me the procedure in clear inorder to execute this script. Dialog("title:=Login").WinEdit("attached text:=Agent Name:").set"agent123" Dialog("title:=Login").WinEdit("attached text:=Password:").set"mercury" Dialog("attached text:=Login").winbutton("text:=OK").click

2 Answers  


Explain in brief about the quicktest professional automation object model?

0 Answers  


Categories