Home > DeveloperSection > Forums > Is there a method to get command line arguments in VB.NET?
Shiro Misra
Shiro Misra

Total Post:1

Points:7
Posted on    September-29-2010 7:21 PM

 VB.Net VB.Net 
Ratings:


 1 Reply(s)
 3154  View(s)
Rate this:
Is there a method to get command line arguments in VB.NET? Please provide a sample of retreiving command line parametes.


Amit Singh

Total Post:103

Points:721
Posted on    September-30-2010 12:17 PM

write this code to get the command line argument
 

Shared Sub Main(ByVal args As String())

    For Each arg As String In args

        Console.WriteLine(arg)

    Next arg  

    Console.ReadLine()

End Sub


Don't want to miss updates? Please click the below button!

Follow MindStick