Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cmd.exe recognization
#1
Solved: 11 Years, 4 Months, 4 Weeks ago
hi
i am trying to put some text on command Propmpt but the code is not coming when i am using the Record metod. do i require to make some settings

however i tried descriptive programming to activate the cmd window using Window("text:=C:\WINDOWS\system32\cmd.exe").Activate then its not identifying it while playback (Verify that this object's properties match an object currently displayed in your application.)

i have used ActiveX and VB AddIns

can somebdy help on this

thanks
Ramesh
Reply
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
I dont think, we can record the command window as this is a DOS window.
You can work on this using "wscript.shell"

Code:
set oCmd=createobject("WSCript.Shell")
oCmd.run "cmd /K Date"

There can be some other ways as well to handle this , depends on the requirement.

Reply
#3
Solved: 11 Years, 4 Months, 4 Weeks ago
thanks
it worked

Code:
Set a = CreateObject("WScript.shell")
a.Run "cmd"
a.SendKeys "hello{ENTER}"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Exe invoked through UFT is unable to access IIS and SQL Server service bkdevise 0 2,192 08-25-2015, 05:49 PM
Last Post: bkdevise
  Faulting application name: QTPro.exe rsk_beckon1 1 3,473 09-25-2014, 10:01 AM
Last Post: vinod123
  Launching .exe file with parameters magnifyingone 1 3,217 08-28-2014, 06:39 PM
Last Post: dplank
  How to run .vbs files through wscript.exe sams001 0 2,724 03-23-2013, 11:08 AM
Last Post: sams001
  Need some help in Object Recognization in my app skalyan24 1 2,091 02-17-2013, 11:48 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 2 Guest(s)