Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to find the username that a process is running under Pin
Jun Du24-Aug-06 9:00
Jun Du24-Aug-06 9:00 
QuestionASP ADO Variable Problem [modified] Pin
Soot22-Aug-06 10:24
Soot22-Aug-06 10:24 
GeneralRe: ASP ADO Variable Problem Pin
Guffa22-Aug-06 11:18
Guffa22-Aug-06 11:18 
QuestionObjects, Databases and best practice Pin
martin_hughes22-Aug-06 9:39
martin_hughes22-Aug-06 9:39 
AnswerRe: Objects, Databases and best practice Pin
Christian Graus22-Aug-06 11:24
protectorChristian Graus22-Aug-06 11:24 
AnswerRe: Objects, Databases and best practice Pin
Guffa22-Aug-06 11:53
Guffa22-Aug-06 11:53 
AnswerRe: Objects, Databases and best practice Pin
Ennis Ray Lynch, Jr.22-Aug-06 12:12
Ennis Ray Lynch, Jr.22-Aug-06 12:12 
QuestionCompiling through Shell Execution Code Pin
zaigham_chaudhry22-Aug-06 9:10
zaigham_chaudhry22-Aug-06 9:10 
Hi there:
As you know we can compile a C Sharp program at DOS prompt like

csc MyProgram.cs

Where MyProgram.cs is the source code file.

Now i want to perform the same compilation through another C Sharp Program. Like i made a program named ShellExecution, which tries to compile another C Sharp Source Code File called "First.cs" lying in my c directory. The program runs fine without any exceptions; it opens the dos window and runs csc, but nothing happens and seems like the file name "First.cs" is not being passed to the csc.exe as a parameter. I have used the following code for executing the compilation process:

System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = "C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\CSC.exe";
process.StartInfo.Arguments = "C:\\First.cs";
process.StartInfo.UseShellExecute = true;
process.StartInfo.RedirectStandardOutput = false;
process.StartInfo.CreateNoWindow = false;
process.Start();
process.WaitForExit();


Please help me out!!!!
AnswerRe: Compiling through Shell Execution Code Pin
Ed.Poore22-Aug-06 12:02
Ed.Poore22-Aug-06 12:02 
GeneralRe: Compiling through Shell Execution Code Pin
zaigham_chaudhry24-Aug-06 5:54
zaigham_chaudhry24-Aug-06 5:54 
GeneralRe: Compiling through Shell Execution Code Pin
Ed.Poore24-Aug-06 6:51
Ed.Poore24-Aug-06 6:51 
QuestionGet Running Processes Using A Library [modified] Pin
Aaron Dilliard22-Aug-06 9:03
Aaron Dilliard22-Aug-06 9:03 
AnswerRe: Get Running Processes Using A Library Pin
Nader Elshehabi22-Aug-06 12:12
Nader Elshehabi22-Aug-06 12:12 
QuestionHTML Page from Windows Pin
kalyanPaladugu22-Aug-06 8:44
kalyanPaladugu22-Aug-06 8:44 
AnswerRe: HTML Page from Windows Pin
Jun Du22-Aug-06 8:52
Jun Du22-Aug-06 8:52 
GeneralRe: HTML Page from Windows Pin
kalyanPaladugu22-Aug-06 8:57
kalyanPaladugu22-Aug-06 8:57 
GeneralRe: HTML Page from Windows Pin
Jun Du22-Aug-06 9:09
Jun Du22-Aug-06 9:09 
GeneralRe: HTML Page from Windows Pin
kalyanPaladugu22-Aug-06 9:13
kalyanPaladugu22-Aug-06 9:13 
GeneralRe: HTML Page from Windows Pin
Jun Du22-Aug-06 9:50
Jun Du22-Aug-06 9:50 
Questionserial port Pin
Yustme22-Aug-06 8:25
Yustme22-Aug-06 8:25 
AnswerRe: serial port Pin
Nader Elshehabi22-Aug-06 12:20
Nader Elshehabi22-Aug-06 12:20 
QuestionSome Questions about Compact Framework and TabControl Pin
RizwanSharp22-Aug-06 8:11
RizwanSharp22-Aug-06 8:11 
AnswerRe: Some Questions about Compact Framework and TabControl Pin
Nader Elshehabi22-Aug-06 12:03
Nader Elshehabi22-Aug-06 12:03 
QuestionHelp with treeview and icons Pin
Anthony Mushrow22-Aug-06 7:57
professionalAnthony Mushrow22-Aug-06 7:57 
AnswerRe: Help with treeview and icons Pin
Nader Elshehabi22-Aug-06 11:56
Nader Elshehabi22-Aug-06 11:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.