30-06-14, 05:35 PM
كود :
Dim _scriptEditor As String = ""
Dim scriptPath As String = ""
Dim myProcess = New Process()
myProcess.StartInfo.FileName = _scriptEditor
myProcess.StartInfo.Arguments = String.Format("""{0}""", scriptPath)عليك إعطاء قيمة للممتغيران ف بداية الكود من الأفضل أن تستخدم الكود بالشكل التالي لأنه ربما يحدث خطأ ما أثناء التنفيذ
كود :
Dim _scriptEditor As String = ""
Dim scriptPath As String = ""
Dim myProcess = New Process()
Try
myProcess.StartInfo.FileName = _scriptEditor
myProcess.StartInfo.Arguments = String.Format("""{0}""", scriptPath)
Catch ex As Exception
Finally
' do something
End Try
