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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is QTP’s model for test creation?

681


What is Unicode Compatibility?

1453


hi to all, i need a code.. in flight application 1.i need to login first then i need to insert 3 new orders... 2.i have to log out 3.i have to login again with different user 4.need to insert 2 new orders 5.then need to log out 6.then again login with different user 7.3 new orders create and log out 8.but we hv to do this using data table and actions please help me

1758


Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?

604


How can you close the second opened browser?

804






can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.

5105


What is object spy in quicktest professional?

619


What are the different recording modes?

562


HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?

1718


How many types of recording modes in the qtp?

593


I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",

1355


What VBScript operators, functions, and statements do you use in QuickTest Professional?

2172


Define Environment Variable in UFT and its uses?

610


hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?

1586


Is any limitation to xml checkpoints?

563