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

i am giving.multiple names like ram,raj,san etc....pls enter & search these names in google pade edit box through script... i told to interviewer, using Ms excel & test easily..but interviwer not happy with that answer?

2 Answers   Accenture,


Why you are Using Descriptive programming instead of Object Repository?

11 Answers  


what are the different Frame Works in Quick Test Proffessional testing

5 Answers   Wipro,


How to find the number the number of Links, Brolken Links in a webpage?

3 Answers   Ordain Solutions,


what are the 5 types of objects in qtp

6 Answers   ABC, TCS, Wipro,






Which version of QTP is using by companies nowadays?

4 Answers  


A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.

0 Answers   TCS,


What is the standard timing delay for web based application in qtp?

0 Answers  


give me an example where u used good judgement and logic in solving a problem

0 Answers  


What is time parameter?

1 Answers  


Can anybody give the script to addsheet, add column,add values under that column in the rows?

2 Answers   McAfee,


write a script for get the following result: username password frm the string1="A=username" string2="B=password"

3 Answers   Oracle,


Categories