Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to make an exe accept an argument

How to make an exe accept an argument

Scheduled Pinned Locked Moved Visual Basic
tutorialquestionjavascript
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    I want to make an exe that runs in the background, and react when I call it with for example a filename. How do i make an exe to accept arguments and react on them?

    D 1 Reply Last reply
    0
    • A Anonymous

      I want to make an exe that runs in the background, and react when I call it with for example a filename. How do i make an exe to accept arguments and react on them?

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      In VB6, you can get the command line arguments from the Command variable. In VB.NET, you can get them from the Microsoft.VisualBasic.Command() variable. VB.NET docs on this are here[^]. Now, did you want to communicate with an already running instance of your app or is your app going to be running as a service? RageInTheMachine9532

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups