?
Solved

How to run a pgm?

Posted on 2003-12-11
4
Medium Priority
?
304 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 250 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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month13 days, 23 hours left to enroll

801 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