Results 1 to 2 of 2

Thread: [02/03 Resolved] Processing command line argouments

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Location
    Italy
    Posts
    90

    Resolved [02/03 Resolved] Processing command line argouments

    Hi guys

    I have to process command line arguments of my application, so, in the Main() method I insert the args() parameter:

    VB Code:
    1. Sub Main(args() as string)
    2.     dim sArg as string
    3.  
    4.     For Each sArg in args()
    5.         ....
    6.      Next
    7. End sub

    When I'll launch the executable file l'll set arguments using - character, for example c:\Test.exe -c.
    But how to set arguments in VB.NET to debug my application?

    Thanks

  2. #2
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: [02/03 Resolved] Processing command line argouments

    you could also use Environment.GetCommandArgs too
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width