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

How to create an exe of a vb.net windows application

Malathi
31
Hi all,

I want to create an exe of a vb.net windows application and this application has 2 input paramaters.(This exe will called by a stored procedure). Whats the good way to create an exe? Should I go ahead with console application for passing parameters? Or by simply creating an exe is enough to pass the parameters?

Thanks,
Malathi
Apr 18 '12 #1

✓ answered by zacksoniar

See if it helps... U will have to search more about Process Class

Expand|Select|Wrap|Line Numbers
  1. Process a = new Process();
  2. ProcessStartInfo sInfo = new ProcessStartInfo();
  3. sInfo.Arguments = "SwitchUser";
  4. a.StartInfo = sInfo;
  5. try
  6. {
  7.   a.Start();
  8. }
  9.  

4 2008
In Project Properties - > Debug -> Start options -> command line arguments... u can specify ur input parameters. Set Configuration as Release.
Apr 21 '12 #2
Malathi
31
Thanks for your reply Zacksoniar! I tried this also.. But I need a solid solution.After creating an exe,I want to call this exe in another windows application.
Apr 23 '12 #3
See if it helps... U will have to search more about Process Class

Expand|Select|Wrap|Line Numbers
  1. Process a = new Process();
  2. ProcessStartInfo sInfo = new ProcessStartInfo();
  3. sInfo.Arguments = "SwitchUser";
  4. a.StartInfo = sInfo;
  5. try
  6. {
  7.   a.Start();
  8. }
  9.  
Apr 23 '12 #4
Malathi
31
Atlast I found the key! To create an exe - better you create a console application and do your stuff.. Call this exe in another windows or web app by using the above code of zacksoniar..
Apr 26 '12 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Elp | last post by:
Hi, I have developped a Windows applcation (in C#) that allows, among other things, users to view and control the desktop of a remote Windows XP Pro machine. I have actually simply embedded the...
0
by: Simon Verona | last post by:
I have a windows forms application that I wish to build an installer for. Part of this application is an .asp webpage that I wish to install alongside the windows application and create a virtual...
4
by: Pippo | last post by:
My environment... VS .NET 2003 One solution 3 Project (1 Windows service - 1 Windows application - 1 Installshield basic msi) I know that there's not possible create a service with gui. In...
6
by: Shimon Sim | last post by:
Hi 1) Is it possible to force browser to open image in default windows application? That is what specifies in Folder Options for jpg extension. 2) Also if the 1) is possible is it possible to...
3
by: johnThemod | last post by:
Hi, Im new to these groups, Im wondering is it possible to develop a windows application(c#) and embed it into a browser. So if a user goes to this page, the application woudl be downloaded....
1
by: lavu | last post by:
I currently have a C# windows Application . I would like this App to work through an command line interface also. I would like to specify command line params, which should start the app and process...
4
by: Gav | last post by:
Hi, I am writing a windows form application (C#) which access's data from an SQL server. The SQL server is using windows authentication only. At the moment I have to grant the domain users...
3
by: illegal.prime | last post by:
Hi all, I have a service that needs to start a regular windows application. I'm running the service as ServiceAccount.LocalSystem. But, when it starts the process (using Process.Start) the GUI...
2
by: =?Utf-8?B?dmlzaHJ1dGg=?= | last post by:
Hi, I have 2 applications running, one Windows application project and the other windows services project. I want to call my Windows application in my windows services. I want to run them as...
1
by: =?Utf-8?B?dmlzaHJ1dGg=?= | last post by:
Hi, I have 2 applications running, one Windows application project and the other windows services project. I want to call my Windows application in my windows services. I want to run them as...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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...
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,...

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.