Call Shell("bash ~/newbatch.sh", vbNormalFocus)
File not found.
I used to run
VB
Private Sub CommandButton1_Click()
Dim cmd As String
Dim ret As Double
Dim WshShell As Object
Dim plink_object As Object
' Run Linux Commands
Set WshShell = CreateObject("WScript.Shell")
On Error Resume Next
Set plink_object = WshShell.Run("C:\cygwin\bin\mintty.exe C:\cygwin\home\cmccabe\ newbatch.sh 66 ""50602_15:56:31_15:56:11_15:56:21;50602_15:57:07_15:56:47_15:56:57""", 1)
On Error GoTo 0
that seemed to work but now cygwin opens and then closes right away. Im not sure if there is a better way or what I am doing wrong? Thank you
.
Bookmarks