Forum Discussion
Im using TestComplete 10
can someone help ?
Sys.OleObject("WScript.Shell").Exec("cmd /c C:\\TestComplete\\JavaBinding\\ReportGenerator.BAT");
Hi this looks like a bug with test complete,I had a similar problem ,all i had to do is to open excel from command prompt and the command for that was
"C:\Program Files\Microsoft Office\Office14\excel.exe"
but I had to fiddle with the double quotes and had to play around and finally this worked
"""C:\Program Files\Microsoft Office\Office14\excel.exe""""
- AlexKaras9 years ago
Champion Level 2
Hi,
This is correct and expected behavior: Exec() command requires string parameter. So, it must be quoted. As the parameter contains spaces, it must be quoted according to the OS requirements. To make script engine treat quotes within another quotes as quotes, the inner quotes must be doubled. This gives you three quote characters at the beginning of the string and three quotes at string end. (Your second code sample contains one extra quote character at the end.)