How to make an exe accept an argument
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
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?
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