Launching the Desktop Application
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Launching the Desktop Application
I am trying to launch a desktop application using testcomplete but its not getting launched. So i did some sresearch and got to know that its happening because of the path i am giving in variable but if i use same path suing run command then applicaiton gets open. So i checked with notepad application which gets open but my application is not opening becase of an extra space given in folder name.
So can anyone help me how to pass path if path has an space between folder name -
Code is as below -
Function LaunchApp()
Dim appPath = "C:\\App\\Ellie Mae\\ApplicationName.exe" ' here folder Ellie Mae has an space between Ellie and Mae, so application is not opening
Call Sys.OleObject("WScript.Shell").Run(appPath)
End Function
So can anyone help me how to write the path when there is an space between folder name?
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Like in command prompt you must enclose path into quotes.
In case of VBScript it will be like this:
Dim appPath = """C:\\App\\Ellie Mae\\ApplicationName.exe""" ' three quotes at the beginning and the end
Also you may consider to add your application to Tested Applications and start it using TestedApps functionality: https://support.smartbear.com/testcomplete/docs/testing-with/tested-apps/index.html
/Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
