Click here to Skip to main content
15,921,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# print document in bill format Pin
Not Active27-Sep-09 3:31
mentorNot Active27-Sep-09 3:31 
QuestionHow to create setup projects Pin
DarkSorrow3826-Sep-09 21:06
DarkSorrow3826-Sep-09 21:06 
AnswerRe: How to create setup projects Pin
khosnur26-Sep-09 21:16
khosnur26-Sep-09 21:16 
GeneralRe: How to create setup projects Pin
DarkSorrow3827-Sep-09 2:46
DarkSorrow3827-Sep-09 2:46 
GeneralRe: How to create setup projects Pin
Not Active27-Sep-09 3:28
mentorNot Active27-Sep-09 3:28 
GeneralRe: How to create setup projects Pin
DarkSorrow3827-Sep-09 3:57
DarkSorrow3827-Sep-09 3:57 
GeneralRe: How to create setup projects Pin
dan!sh 27-Sep-09 9:19
professional dan!sh 27-Sep-09 9:19 
QuestionHow execute Command Prompt(Ms-DOS) commands through C# Pin
DarkSorrow3826-Sep-09 20:59
DarkSorrow3826-Sep-09 20:59 
I am trying to execute Command Prompt(Ms-DOS) commands through C# like shutdown -s -t 0(and several other commands) by creating an object of System.Diagnostic.Process class. When the Start method is executed a new Command Prompt window opens but the command does not execute.
// code procedure
public static void ExecuteCommand()
{
   Process p = new Process("cmd.exe", "shutdown -s -t 0");
   p.CreateNoWindow = true;
   p.UseShellExecute = false;
   p.Start();
}

I have imported the System.Diagnostic namespace.

Banking establishments are more dangerous than standing armies.
AnswerRe: How execute Command Prompt(Ms-DOS) commands through C# Pin
0x3c026-Sep-09 22:32
0x3c026-Sep-09 22:32 
GeneralRe: How execute Command Prompt(Ms-DOS) commands through C# Pin
DarkSorrow3827-Sep-09 4:11
DarkSorrow3827-Sep-09 4:11 
GeneralRe: How execute Command Prompt(Ms-DOS) commands through C# Pin
0x3c027-Sep-09 5:01
0x3c027-Sep-09 5:01 
AnswerRe: How execute Command Prompt(Ms-DOS) commands through C# Pin
PIEBALDconsult27-Sep-09 4:38
mvePIEBALDconsult27-Sep-09 4:38 
AnswerRe: How execute Command Prompt(Ms-DOS) commands through C# [modified] Pin
Luc Pattyn27-Sep-09 7:21
sitebuilderLuc Pattyn27-Sep-09 7:21 
QuestionSrcChess by Jacques Fournier Pin
Marcel5126-Sep-09 20:55
Marcel5126-Sep-09 20:55 
AnswerRe: SrcChess by Jacques Fournier Pin
Richard MacCutchan26-Sep-09 21:44
mveRichard MacCutchan26-Sep-09 21:44 
QuestionHow to develop an VS add-in to find the path and file name of the assembly? Pin
Damu Li26-Sep-09 16:20
Damu Li26-Sep-09 16:20 
AnswerRe: How to develop an VS add-in to find the path and file name of the assembly? Pin
Luc Pattyn26-Sep-09 16:41
sitebuilderLuc Pattyn26-Sep-09 16:41 
GeneralRe: How to develop an VS add-in to find the path and file name of the assembly? Pin
PIEBALDconsult26-Sep-09 17:01
mvePIEBALDconsult26-Sep-09 17:01 
GeneralRe: How to develop an VS add-in to find the path and file name of the assembly? Pin
Damu Li26-Sep-09 17:54
Damu Li26-Sep-09 17:54 
GeneralRe: How to develop an VS add-in to find the path and file name of the assembly? Pin
Damu Li26-Sep-09 19:47
Damu Li26-Sep-09 19:47 
QuestionInteracting with a Global System Object [modified] Pin
Bull City Rambler26-Sep-09 16:18
Bull City Rambler26-Sep-09 16:18 
AnswerRe: Interacting with a Global System Object Pin
Dave Kreskowiak26-Sep-09 17:29
mveDave Kreskowiak26-Sep-09 17:29 
Questionhow i can fill collection from database and connect this collection to ComboBox ? Pin
E_Gold26-Sep-09 9:30
E_Gold26-Sep-09 9:30 
AnswerRe: how i can fill collection from database and connect this collection to ComboBox ? Pin
Abhijit Jana26-Sep-09 9:49
professionalAbhijit Jana26-Sep-09 9:49 
AnswerRe: how i can fill collection from database and connect this collection to ComboBox ? Pin
PIEBALDconsult26-Sep-09 12:38
mvePIEBALDconsult26-Sep-09 12:38 

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.