Click to See Complete Forum and Search --> : Parameters with execution.
erezrave
March 10th, 2003, 04:40 AM
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.
DSJ
March 10th, 2003, 08:02 AM
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.
Iouri
March 10th, 2003, 08:22 AM
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
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.