Solved

How to run a pgm?

Posted on 2003-12-11
4
303 Views
Last Modified: 2010-04-16
how to run a C# program in DOS using csc command?(it didnt work..no external command)
how to get command line arguments?
0
Comment
Question by:Surya_k
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 125 total points
ID: 9919983
csc is the C# command line COMPILER, and does NOT execute/run your program.  the Compiler will build the .EXE file from your source code, and then you can simply execute the .EXE fiel as you would ANY OTHER program on your computer.

AW
0
 

Author Comment

by:Surya_k
ID: 9925672
Then how to pass command line arguments in c#?
How to create & run windows service in c#?
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 9927737
to pass command line paramaters,

look up 'COMMAND LINE PARAMETERS' in the VS.NET Help ssytem,'filter by c#' There is a sample program in the Tutorials that are included with VS.NET.

as for Windows Services, create a Windows Service type project.  There should also be a tutorial with VS.NET - look in the Help System.

By the way, it is considered VERY rude, to accept an answer with a grade of C, and then, at the same time, after accepting the answer, to expect to get MORE help.  I will NOT be assisting you again, in the future.

AW
0
 

Author Comment

by:Surya_k
ID: 9933005
Hi Arthur_Wood
I am very sorry. I didnt expect that my comment made u angry. This was my first question in this site so that only I did so.
Thank you verymuch for ur kind help.

SuryaK
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question