Solved

How to run a pgm?

Posted on 2003-12-11
4
300 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
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

861 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