473,382 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 1186
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?
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.