if anyone knows how to make an exe file that gets parameters in execution...
like:
arj *.* /w /x ....
or:
FileName.exe /Parameter1 /Parameter2
????
please help me.
Printable View
if anyone knows how to make an exe file that gets parameters in execution...
like:
arj *.* /w /x ....
or:
FileName.exe /Parameter1 /Parameter2
????
please help me.
Create a module with a Public Sub Main(args() as string) procedure and set it up as the startup procecure, it can accept the arguements.
Code:Imports System.Diagnostics.Process
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
#End Region
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim proc As New Process()
proc.StartInfo.FileName = "c:\windows\notepad.exe"
proc.StartInfo.Arguments = "c:\temp\vb.txt"
proc.Start()
End Sub
End Class