Forum Discussion
Thanks, however still having issues.
I have a keyword test that calls this script and passes it the Build_Version variable.
Running this code, will just bring up the command window for a split second and won't continue executing:
Sub Run_Build (Build_Version)
Sys.OleObject("WScript.Shell").Run "C:\FolderA\FolderB\App_Name.bat + Build_Version", 1, True
End Sub
However this bit of code works correctly:
Sub Run_Build (Build_Version)
CreateObject("WScript.Shell").Run "C:\FolderA\FolderB\App_Name.bat18.00.02", 1, True
End Sub
But, here I want to replace 18.00.02 with the variable. So when I do this, it does not work !
Sub Run_Build (Build_Version)
CreateObject("WScript.Shell").Run "C:\FolderA\FolderB\App_Name.bat Build_Version", 1, True
End Sub
If I have it as + Build_Version, it will say path not found.
This works! It takes a parameter and test run resumes only after the batch file has completed it's execution.
Sub Run_Build (Build_Version)
dim shell, x, y, z
x="C:\FolderA\FolderB\"
y=x & "App_Name.bat "
z=Project.Variables.Build_Version
set shell=CreateObject("WScript.Shell")
shell.run y + z, 1, true
End sub
Related Content
- 3 months ago
- 3 years ago
- 4 years ago
Recent Discussions
- 10 hours ago