X Zero
Forum Addict
Well, I have a simple problem, let me explain.
I have this code:
new question how can it get the file name use the Environment thing
This how I got the path.
How can this be achived?
I have this code:
Code:
Public Sub New()
InitializeComponent()
On Error Resume Next
If File.Exists(String.Join(" ", Environment.GetCommandLineArgs(), 1, Environment.GetCommandLineArgs().Length - 1)) Then
MsgBox(Environment.CurrentDirectory.ToString)
Me.textBox1.Text = File.ReadAllText(String.Join(" ", Environment.GetCommandLineArgs(), 1, Environment.GetCommandLineArgs().Length - 1))
End If
End Sub
new question how can it get the file name use the Environment thing
This how I got the path.
Code:
MsgBox(Environment.CurrentDirectory.ToString)
How can this be achived?


