473,473 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Parameters on an Executable

Using VB.NET, I need to create an executable that will accept parameters.
This app will not have any user interface, I just want it called from another
app but I need to send some parameters in.

Can someone tell me how to do this?

Thanks!
Nov 22 '05 #1
2 1187
The Command() function should return command line parameters.

Andrej

"Jason Givens" <Ja*********@discussions.microsoft.com> wrote in message
news:32**********************************@microsof t.com...
Using VB.NET, I need to create an executable that will accept parameters.
This app will not have any user interface, I just want it called from
another
app but I need to send some parameters in.

Can someone tell me how to do this?

Thanks!

Nov 22 '05 #2
The main() function has a few overloads including ones that captures
the input parameters.

e.g.

Public Class myApp

#Region "Shared"

Public Shared Sub main(ByVal args() As String)

Dim app As myApp
Dim mainForm As myForm

Try

app = New myApp(args) ' passes the arguments
into the app class
mainForm = New myForm(app) ' creates the mainForm with a
reference the app class

Application.Run(mainForm)

Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

End Sub

#End Region
End Class

hth,
Alan.

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: lamar_air | last post by:
I have a fortran executable which when run from cmd it asks for a series of parameters which you enter then hit enter. From my python cgi script i want to be able to run the executable. Enter the...
0
by: Mathieu Drapeau | last post by:
Hi, I would like to do something like below but I lost my arguments passed via an html web page when I reload python within my script: /import os,sys dirName = "/opt/oracle/product/9.2.0/lib"...
4
by: Brad Smith | last post by:
I have a unique requirement to run an executable file from withing a HTML document. The HTML is actually embedded in an email sent as a notification to a user of our application. I need to include...
0
by: JV | last post by:
How do I call a c# created executable with parameters from an outlook email. The following works from Start->Run \\servername\BUILD\QUEST\QUEST.EXE\ InternalCar=65 But I cannot figure out how...
2
by: Jason Givens | last post by:
Using VB.NET, I need to create an executable that will accept parameters. This app will not have any user interface, I just want it called from another app but I need to send some parameters in. ...
0
by: Mike Dole | last post by:
I'm trying to run a DOS executable with CreateProcessWithLogon instead of running it as a batch job. It runs fine as a batch job but doesn't run when the workstation is locked, that's why I wanna...
5
by: Christoph Haas | last post by:
Hi, list... I wondered if it's possible to use global (module) variables as default parameters. A simple working example: ---------------------------------------- #!/usr/bin/python ...
1
by: Dave | last post by:
I have a Console app, a related Service Project and Service Setup / Installer Project. I would like to have the result of running the installer.msi file register the service to run with certain...
0
by: Dave | last post by:
I have a Console app, a related Service Project and Service Setup / Installer Project. I would like to have the result of running the installer.msi file register the service to run with certain...
11
by: =?Utf-8?B?U2VyZ2lv?= | last post by:
I need to pass two parameter to a vb.net 2003 windows form application, is this posible? how?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.