473,405 Members | 2,167 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,405 software developers and data experts.

Pass variables to executable

Is there any way within asp.net to pass user defined
parameters/variables to an executable? Much thanks.

nate
Nov 17 '05 #1
5 1898
Hi Nate,

Do you mean arguments passed to Process.Start?

http://msdn.microsoft.com/library/de...mentstopic.asp

"Nate" <av*@originpoint.com> wrote in message
news:08****************************@phx.gbl...
Is there any way within asp.net to pass user defined
parameters/variables to an executable? Much thanks.

nate

Nov 17 '05 #2
An executable what?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Nate" <av*@originpoint.com> wrote in message
news:08****************************@phx.gbl...
Is there any way within asp.net to pass user defined
parameters/variables to an executable? Much thanks.

nate

Nov 17 '05 #3
Well, let me back up a bit. It sounds like you want to shell out to another
program (is that true?). If you can tell us what your requirements
specifically are, perhaps we can come up with a more elegant solution than
shelling out, such as using COM+.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Nate" <av*@originpoint.com> wrote in message
news:08****************************@phx.gbl...
Is there any way within asp.net to pass user defined
parameters/variables to an executable? Much thanks.

nate

Nov 17 '05 #4
I have an executable defined as a system variable... this
exe only runs when atleast 2 variables are passed...an
action/target and a message. It is a paging system.
However i want my submit button to take these two fields
one is from a dropdown field populated from a select
statement ran on the DB. The other field is a text field.
I want it to send these two fields to the exe..I have no
idea how to do this any help is appreciated.

nate
-----Original Message-----
Is there any way within asp.net to pass user defined
parameters/variables to an executable? Much thanks.

nate
.

Nov 17 '05 #5
Hi,

The System.Diagnostics.Process class used to launch external executables can
be configured to pass any command line arguments to an executable being
launched. In the simplest case, you can launch your executable like this:

Process.Start("IExplore.exe", "C:\\myPath\\myFile.asp");

(the example is taken from MSDN Library).

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"nateh" <av*@originpoint.com> wrote in message
news:45****************************@phx.gbl...
I have an executable defined as a system variable... this
exe only runs when atleast 2 variables are passed...an
action/target and a message. It is a paging system.
However i want my submit button to take these two fields
one is from a dropdown field populated from a select
statement ran on the DB. The other field is a text field.
I want it to send these two fields to the exe..I have no
idea how to do this any help is appreciated.

nate
-----Original Message-----
Is there any way within asp.net to pass user defined
parameters/variables to an executable? Much thanks.

nate
.


Nov 17 '05 #6

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

Similar topics

5
by: Phil Grimpo | last post by:
I have a very odd situation here. I have an administration page, where based on a users permissions, a recordset is called from the SQL server which has a list of paths to "Module Menus". Each of...
2
by: Paul M | last post by:
Hi, This is on an AS/400 which can be a little strange but I think the basic question is portable. I have a (non-C) program that needs to make series of calls to some C programs/functions....
3
by: Rahul Gandhi | last post by:
Hi, Which one preferable with respect to code size of the executable Un-initialised global variables or initialised global variables regards Rahul
115
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of a static array within a performance-critical...
4
by: Armando | last post by:
I would like to know how (if its possible) to declare two (or more) string variables into one and use this string to point to an (existing) Object. I tried the following but it goves me an error...
87
by: CJ | last post by:
Hello: We know that C programs are often vulnerable to buffer overflows which overwrite the stack. But my question is: Why does C insist on storing local variables on the stack in the first...
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
25
by: sidd | last post by:
In the following code: int i = 5; ---it goes to .data segment int j; ---it goes to bss segment int main() { int c; int i = 5; ---stack
9
by: raashid bhatt | last post by:
does having more variables increases the size of program.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.