Solved

How to run a pgm?

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now