Forum Discussion
Hi Alex,
Thank you for the reply. So I want to execute the following commands in Command line in the following sequence:
cd\
cd Elink\Deployment
AXISComponents.exe 1
On command line it successfully launch the .exe file.
I created equivalent powershell script, as below:
Set-Location -Path C:\ELink\Deployment
& "AXISComponents.exe" 1
And saved it into the file C:\ELink\Silent Install\DeploymentFolder.ps1
Now I wrote TestComplete script to execute this powershell script, as below:
function test6()
{
WshShell.Run("powershell -file C:\\ELink\\Silent Install\\DeploymentFolder.ps1");
}
but the above script is not launching the .exe file. The problem is that it's hard to trace what's the cause because TestComplete is not even reporting any errors. Can you please let me know what I am doing wrong.
Thanks,
Hina
- AlexKaras2 years agoChampion Level 3
Hi,
Does it work for you if you try just
WshShell.Run("C:\\ELink\\Deployment\\AXISComponents.exe");
?
Related Content
- 5 years ago
- 3 years ago
Recent Discussions
- 3 days ago