IS THERE A METHOD TO GET COMMAND LINE ARGUMENTS IN VB.NET?

Shiro Misra

Total Post:1

Points:7
Posted by  Shiro Misra
VB.Net 
 3520  View(s)
Ratings:
Rate this:
Is there a method to get command line arguments in VB.NET? Please provide a sample of retreiving command line parametes.
  1. Amit Singh

    Post:103

    Points:721
    Re: Is there a method to get command line arguments in VB.NET?

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!