Public Class App Public Shared oStartupEventArgs As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs Public Shared aStartupEventArgs(10) As String ' Initialize Public Shared Function Initialize() As Boolean ' Command line parameters If Framework.App.oStartupEventArgs.CommandLine.Count > 0 Then For lnCounter = 1 To Framework.App.oStartupEventArgs.CommandLine.Count aStartupEventArgs(lnCounter) = Framework.App.oStartupEventArgs.CommandLine.Item(lnCounter - 1) Next End If End Function End ClassSo, I can reference it from the application such as:
' See if we are in auto mode If UCase(Framework.App.aStartupEventArgs(1)) = "/AUTO" Then StartConversion() End If