我有一个带有按钮的VB表单,我用以下代码导入了一个创建的库:
Imports System
Public Class
Public Sub New()
Dim pHelp As New ProcessStartInfo
pHelp.FileName = "MEDICIONES.exe"
pHelp.Arguments = "CU0630 PRUEBA 50 10"
pHelp.UseShellExecute = True
pHelp.WindowStyle = ProcessWindowStyle.Normal
Dim proc As Process = Process.Start(pHelp)
End Sub
End Class
当我点击表单按钮时,我会执行以下操作:
Dim prueba As New ClassLibrary2.Ejecutar()
然后应打开MEDICIONES.exe,但不要打开该应用程序。我做错了什么?