PDA

View Full Version : دریافت پارامتر از خط فرمان exe



meh_secure
یک شنبه 23 بهمن 1384, 21:18 عصر
سلام دوستان.
سوال اینه که چطور می تونم پارامتری که به فایل exe فرستاده میشه رو بخونم.
مثلا:


myApp.exe parameter1 parameter2 ...

H_SH_VB
یک شنبه 23 بهمن 1384, 22:13 عصر
hameye parametr haa miran too ye ja
Command
mitooni injoori bebinishoon
msgbox command

meh_secure
یک شنبه 23 بهمن 1384, 22:59 عصر
ممنون از توجهتون.

SamIran
پنج شنبه 26 شهریور 1388, 13:17 عصر
دوست عزیز چرا ناراحت میشی؟ بفرمایید!
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim separators As String = " "
Dim commands As String = Microsoft.VisualBasic.Interaction.Command()
Dim args() As String = commands.Split(separators.ToCharArray)
MessageBox.Show(args(0))
End Sub