Forum Discussion

rvk_vit's avatar
rvk_vit
New Contributor
6 years ago

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?