Click here to Skip to main content
15,880,469 members
Home / Discussions / C#
   

C#

 
QuestionSync SQLite with Oracle or Postgre Pin
Potestas30-Mar-16 21:42
Potestas30-Mar-16 21:42 
AnswerRe: Sync SQLite with Oracle or Postgre Pin
Nathan Minier31-Mar-16 1:26
professionalNathan Minier31-Mar-16 1:26 
QuestionC# Tic Tac Toe "Simulator" Pin
Member 1242680830-Mar-16 11:24
Member 1242680830-Mar-16 11:24 
AnswerRe: C# Tic Tac Toe "Simulator" Pin
Sascha Lefèvre30-Mar-16 17:15
professionalSascha Lefèvre30-Mar-16 17:15 
AnswerRe: C# Tic Tac Toe "Simulator" Pin
Rob Philpott30-Mar-16 23:41
Rob Philpott30-Mar-16 23:41 
AnswerRe: C# Tic Tac Toe "Simulator" Pin
Patrice T31-Mar-16 0:55
mvePatrice T31-Mar-16 0:55 
RantREPOST Pin
Richard Deeming31-Mar-16 1:42
mveRichard Deeming31-Mar-16 1:42 
QuestionDynamically close DB2 CLP window using C# Pin
Tej_dev30-Mar-16 6:44
Tej_dev30-Mar-16 6:44 
Hi All,
I have created console application to execute DB2 commands using C#. my commands executed fine and DB2 CLP command window opened i can see output as well. but once my command executed I am not able to close DB2 CLP window using C# code.
I tried to kill Process.GetProcessByName but not succeeded.
I also used Application.Exit() method.
Note: i am connecting to server DB2 using local machine.
Below is my code.

C#
try
           {
 ProcessStartInfo objProcStartInfo;
            Process objProcess;
               //Connect To IBM DB2 database using CLP Process Object
               objProcStartInfo = new ProcessStartInfo("db2cmd.exe", "db2 connect to " + strMasterdatabaseName + " user " + strserviceAccountUserName + " using " + strserviceAccountPassword + "&db2 -f " + strexportFilePath + " > " + strexportLogFilePath + "");
               objProcStartInfo.RedirectStandardOutput = false;
               objProcStartInfo.UseShellExecute = false;
               objProcStartInfo.CreateNoWindow = false;
               objProcess = new Process();
               objProcess.StartInfo = objProcStartInfo;
               objProcess.Start();

           }
           catch (Exception ex)
           {
               Console.WriteLine(ex.ToString());
           }


can someone please provide any direction on this?
Thanks

modified 30-Mar-16 12:49pm.

AnswerMessage Closed Pin
30-Mar-16 7:19
mveGerry Schmitz30-Mar-16 7:19 
GeneralRe: Dynamically close DB2 CLP window using C# Pin
Tej_dev30-Mar-16 8:14
Tej_dev30-Mar-16 8:14 
SuggestionRe: Dynamically close DB2 CLP window using C# Pin
Richard Deeming30-Mar-16 8:44
mveRichard Deeming30-Mar-16 8:44 
GeneralMessage Closed Pin
30-Mar-16 8:52
mveGerry Schmitz30-Mar-16 8:52 
GeneralRe: Dynamically close DB2 CLP window using C# Pin
Richard Deeming30-Mar-16 8:54
mveRichard Deeming30-Mar-16 8:54 
AnswerRe: Dynamically close DB2 CLP window using C# Pin
Richard Deeming30-Mar-16 8:52
mveRichard Deeming30-Mar-16 8:52 
GeneralRe: Dynamically close DB2 CLP window using C# Pin
Tej_dev30-Mar-16 9:03
Tej_dev30-Mar-16 9:03 
QuestionBitmap to BitmapImage Conversion Not Working - WPF Pin
AmbiguousName30-Mar-16 4:36
AmbiguousName30-Mar-16 4:36 
AnswerRe: Bitmap to BitmapImage Conversion Not Working - WPF Pin
Rob Philpott30-Mar-16 5:46
Rob Philpott30-Mar-16 5:46 
GeneralRe: Bitmap to BitmapImage Conversion Not Working - WPF Pin
AmbiguousName30-Mar-16 6:04
AmbiguousName30-Mar-16 6:04 
AnswerRe: Bitmap to BitmapImage Conversion Not Working - WPF Pin
Matt T Heffron30-Mar-16 6:54
professionalMatt T Heffron30-Mar-16 6:54 
AnswerRe: Bitmap to BitmapImage Conversion Not Working - WPF Pin
Gerry Schmitz30-Mar-16 7:06
mveGerry Schmitz30-Mar-16 7:06 
AnswerRe: Bitmap to BitmapImage Conversion Not Working - WPF Pin
V.31-Mar-16 3:42
professionalV.31-Mar-16 3:42 
Questionworking with pixels Pin
Hira Khalid29-Mar-16 3:16
Hira Khalid29-Mar-16 3:16 
AnswerRe: working with pixels Pin
OriginalGriff29-Mar-16 3:33
mveOriginalGriff29-Mar-16 3:33 
AnswerRe: working with pixels Pin
Dave Kreskowiak29-Mar-16 3:45
mveDave Kreskowiak29-Mar-16 3:45 
AnswerRe: working with pixels Pin
Eddy Vluggen29-Mar-16 4:06
professionalEddy Vluggen29-Mar-16 4:06 

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.