Public Overloads Shared Function FN_ExecuteCmd(ByVal strFileName As String) As String
Dim myProcess As System.Diagnostics.Process = Nothing
Try
myProcess = New System.Diagnostics.Process
myProcess.StartInfo.FileName = strFileName
myProcess.StartInfo.CreateNoWindow = True
myProcess.Start()
myProcess.Close() myProcess.Dispose() Return "1" Catch ex As Exception myProcess.Close() myProcess.Dispose() Throw ex End Try End Function
原文链接:https://www.f2er.com/vb/259045.html