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

How run this line from within a console application?

I have the following line that I wish to execute from within a VB.NET
Console Application.

svcutil.exe http://localhost/COWFeedyardService/Services/Animal.svc
/out:Animal.vb /config:App.config /language:VB

Manually, I can open the Windows SDK Command Prompt and type exactly the
above and it works. But how can I make it work from within a console app?

Thanks for any help,
Ron


Apr 11 '07 #1
2 1470
On Apr 11, 8:53 am, "Ronald S. Cook" <r...@westinis.comwrote:
I have the following line that I wish to execute from within a VB.NET
Console Application.

svcutil.exehttp://localhost/COWFeedyardService/Services/Animal.svc
/out:Animal.vb /config:App.config /language:VB

Manually, I can open the Windows SDK Command Prompt and type exactly the
above and it works. But how can I make it work from within a console app?

Thanks for any help,
Ron
Use the Process class to create a subprocess to execute the command.

Apr 11 '07 #2
"Ronald S. Cook" <rc***@westinis.comschrieb:
>I have the following line that I wish to execute from within a VB.NET
Console Application.

svcutil.exe http://localhost/COWFeedyardService/Services/Animal.svc
/out:Animal.vb /config:App.config /language:VB

Manually, I can open the Windows SDK Command Prompt and type exactly the
above and it works. But how can I make it work from within a console app?
\\\
Imports System.Diagnostics
....
Process.Start("...\svcutil.exe", "http://... /language:VB")
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Apr 11 '07 #3

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

Similar topics

11
by: Ken Varn | last post by:
I want to be able to determine my current line, file, and function in my C# application. I know that C++ has the __LINE__, __FUNCTION__, and __FILE___ macros for getting this, but I cannot find a...
15
by: Madhanmohan S | last post by:
Hi All, I want to run a command line appplication from C#. When i start the application, it will go into specific mode. After that, i have to give commands to use the application. How Can This Be...
1
by: AA | last post by:
Somebody know how to get a fixed line in a console application, so if you want to write a command or something in the console, you have always one fixed line where you can do that. Like a prompt, but...
2
by: Brett | last post by:
How do I receive command line parameters being passed into my application? Say I call the application from within MS Access and it passes me an ID. How do I receive the ID in the VB.NET app? ...
10
by: David B | last post by:
I am writing a console App with VB 2005 where I accept a text file as input, parse it and insert the text data into an SQL table. I have written the code correctly as well as I can tell because it...
5
by: Selva Chinnasamy | last post by:
Hi I have a Windows application written in VB which has many functions. In addition it also reads a database and generates a output file. Currently this function is called when ever user clicks...
3
by: Ronald S. Cook | last post by:
I have the following line that I wish to execute from within a C# Console Application. svcutil.exe http://localhost/COWFeedyardService/Services/Animal.svc /out:Animal.vb /config:App.config ...
3
by: Andy | last post by:
Hi Just starting out with C#. In the book I'm using it looks like it possible to get a console window within the IDE it self. But I can't find anything in the book about how they've managed to...
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
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
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
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
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...
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...

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.