Skip to content

Commit

Permalink
Merge 01a0f3d into 65f88fb
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Jun 7, 2018
2 parents 65f88fb + 01a0f3d commit d698381
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion distrib/windows/application.vbs.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ For Each arg in WScript.Arguments
args = args&" "&arg
Next

CreateObject("WScript.Shell").Run "bin\${CMAKE_PROJECT_NAME}.exe"&args, 1, False
cms = "bin\${CMAKE_PROJECT_NAME}.exe"&args

CreateObject("WScript.Shell").Run cmd, 1, False
4 changes: 3 additions & 1 deletion run.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ If CreateObject("Scripting.FileSystemObject").FileExists("build\bin\OpenCOR.exe"
args = args&" "&arg
Next

CreateObject("WScript.Shell").Run "build\bin\OpenCOR.exe"&args, 1, False
cmd = "build\bin\OpenCOR.exe"&args

CreateObject("WScript.Shell").Run cmd, 1, False
Else
WScript.Echo "OpenCOR must first be built before being run."
End If

0 comments on commit d698381

Please sign in to comment.