[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 313
  • Last Modified:

How to run a pgm?

how to run a C# program in DOS using csc command?(it didnt work..no external command)
how to get command line arguments?
0
Surya_k
Asked:
Surya_k
  • 2
  • 2
1 Solution
 
Arthur_WoodCommented:
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
 
Surya_kAuthor Commented:
Then how to pass command line arguments in c#?
How to create & run windows service in c#?
0
 
Arthur_WoodCommented:
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
 
Surya_kAuthor Commented:
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!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now