|
-
March 10th, 2003, 05:40 AM
#1
Parameters with execution.
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.
-
March 10th, 2003, 09:02 AM
#2
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.
-
March 10th, 2003, 09:22 AM
#3
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|