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 challenges do we face while testing webbased applcations using the automation tool QTP or any?

1 Answers  


hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com

0 Answers  


Where the text version of script file located in file system?

1 Answers  


How can you identify the browser and its information using the qtp script?

0 Answers  


What is the another extension name of library file. If that is exist than what's the difference between them.

2 Answers   Synechron,






Use of Debug Viewer?

1 Answers  


how qtp identify two objects having same name, supose objects are in same page also with same name,specify spl feature.

5 Answers   IGT, Microsoft,


Could some one help me the difference between GetTOProperty and SetTOProperty and when we will use these properties. and what is meant by SetToProperties..

5 Answers   Clinical Soft,


what is descriptive.create()in qtp?

3 Answers  


In QTP whether is it possible to call a function from one action to another action?

1 Answers  


how to get the data from a winedit box in vb scripting and store it in a variable if data contains "_"(i.e data is TEST_1)

3 Answers  


QTP WAS WORKING FINE BUT TODAY I GOT THE ERROR , THE MEMORY COULD NOT BE READ -REFERENCE MEMORY ,pPLEASE REPLY URGENT WHAT IS THE SOLUTON

1 Answers  


Categories