Skip to content

Commit

Permalink
Update script to explicitly use cmd to execute .bat files
Browse files Browse the repository at this point in the history
  • Loading branch information
Manika-EDB committed Nov 7, 2024
1 parent d168cdf commit e8149dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/scripts/windows/initcluster.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Function DoCmd(strCmd)
objBatchFile.WriteLine "EXIT /B %ERRORLEVEL%"
objBatchFile.Close
WScript.Echo " Executing batch file '" & strBatchFile & "'..."
DoCmd = objShell.Run(""""&objTempFolder.Path & "\" & strBatchFile & """", 0, True)
DoCmd = objShell.Run("cmd /c """ & objTempFolder.Path & "\" & strBatchFile & """", 0, True)
If objFso.FileExists(objTempFolder.Path & "\" & strBatchFile) = True Then
objFso.DeleteFile objTempFolder.Path & "\" & strBatchFile, True
Else
Expand Down

0 comments on commit e8149dd

Please sign in to comment.