Passing Commands in Command prompt using VB Script
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Passing Commands in Command prompt using VB Script
Hi,
I am using TestComplete version 5.15.561.7. Language used is VB Script.
I am automating one test case where in it opens the Command prompt --> changes the directroy to where office 2007 is installed --> and then opening one saved Excel workbook
For example: Call Command_Prompt_Window.Keys("c:[Enter]cd C:\Program Files\Microsoft Office\Office12[Enter]\Excel.Exe ""D:\BookMark.xlsx""[Enter]")
where Command_Prompt_Window = NameMapping.Sys.Process("cmd").Window("ConsoleWindowClass", "*")
While playbacking the script, the data passed as ("c:[Enter]cd C:\Program Files\Microsoft Office\Office12[Enter]\Excel.Exe ""D:\BookMark.xlsx""[Enter]" is not taken properly.
For example Colon(:) gets typed as ">" and quotes get typed as "@" in the Command Prompt editor
Can any one please tell me how do I automate the script using VB script so that the Colon and the quotes are entered properly in Command Prompt when the script is play back?
Regards,
Anupa
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Anupa,
Please see the following AutomatedQA forums thread:
http://www.automatedqa.com/forums/forum/post.aspx?mode=singleThread&thread=06ed2ae9-0902-4d27-a075-c...
Also, in the future, please do not send us duplicated requests (note that we reply to messages sent via the Contact Support form, AutomatedQA newsgroups, AutomatedQA forums and the TestComplete section of the SQAforums site). This makes processing your requests much more difficult for us and does not increase the requests priority anyway.
Best regards,
Alexey
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry for the inconvenience. I will take care of it in fututre.
The link you have provided http://www.automatedqa.com/forums/forum/post.aspx?mode=singleThread&thread=06ed2ae9-0902-4d27-a075-c... does not exactly answer my query.
It would be great, if you can tell me the way to pass Colon ( : ) and double quotes ( " ) to Command Prompt using VB Script as explained in my Query.
Regards,
Anupa
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Anupa,
Please see our reply in the following AutomatedQA forums thread:
http://www.automatedqa.com/forums/forum/post.aspx?mode=singleThread&thread=06ed2ae9-0902-4d27-a075-c...
Best regards,
Alexey
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
