Click here to Skip to main content
15,897,273 members
Home / Discussions / C#
   

C#

 
AnswerRe: ask messagebox with sum record Pin
Mycroft Holmes19-Dec-13 18:57
professionalMycroft Holmes19-Dec-13 18:57 
GeneralRe: ask messagebox with sum record Pin
Member 1027082519-Dec-13 19:41
Member 1027082519-Dec-13 19:41 
GeneralRe: ask messagebox with sum record Pin
Mycroft Holmes19-Dec-13 23:46
professionalMycroft Holmes19-Dec-13 23:46 
GeneralRe: ask messagebox with sum record Pin
Simon_Whale20-Dec-13 0:29
Simon_Whale20-Dec-13 0:29 
SuggestionRe: ask messagebox with sum record Pin
Richard Deeming20-Dec-13 2:03
mveRichard Deeming20-Dec-13 2:03 
QuestionThis operation would create an incorrectly structured document. Pin
Jassim Rahma19-Dec-13 10:10
Jassim Rahma19-Dec-13 10:10 
AnswerRe: This operation would create an incorrectly structured document. Pin
Ravi Bhavnani19-Dec-13 10:49
professionalRavi Bhavnani19-Dec-13 10:49 
GeneralRe: This operation would create an incorrectly structured document. Pin
Manfred Rudolf Bihy19-Dec-13 12:22
professionalManfred Rudolf Bihy19-Dec-13 12:22 
GeneralRe: This operation would create an incorrectly structured document. Pin
Jassim Rahma19-Dec-13 22:13
Jassim Rahma19-Dec-13 22:13 
GeneralRe: This operation would create an incorrectly structured document. Pin
JV999919-Dec-13 22:58
professionalJV999919-Dec-13 22:58 
GeneralRe: This operation would create an incorrectly structured document. Pin
Richard Deeming20-Dec-13 1:55
mveRichard Deeming20-Dec-13 1:55 
AnswerRe: This operation would create an incorrectly structured document. Pin
Ravi Bhavnani20-Dec-13 2:10
professionalRavi Bhavnani20-Dec-13 2:10 
AnswerRe: This operation would create an incorrectly structured document. Pin
Ravi Bhavnani20-Dec-13 2:10
professionalRavi Bhavnani20-Dec-13 2:10 
GeneralRe: This operation would create an incorrectly structured document. Pin
Jassim Rahma20-Dec-13 2:15
Jassim Rahma20-Dec-13 2:15 
Questiondetermine if Google Drive is installed and what's its drive? Pin
Jassim Rahma19-Dec-13 7:28
Jassim Rahma19-Dec-13 7:28 
AnswerRe: determine if Google Drive is installed and what's its drive? Pin
Eddy Vluggen19-Dec-13 7:52
professionalEddy Vluggen19-Dec-13 7:52 
AnswerRe: determine if Google Drive is installed and what's its drive? Pin
BillWoodruff19-Dec-13 8:40
professionalBillWoodruff19-Dec-13 8:40 
To find out if GDrive is running:
//required
using System.Diagnostics;

private bool IsGDriveRunning()
{
    return Process.GetProcessesByName("googledrivesync").Length > 0;
}
One way to get the filepath of the running process:
C#
Process[] gDrive = Process.GetProcessesByName("googledrivesync");

if (gDrive.Length > 0)
{
    Console.WriteLine(gDrive[0].Modules[0].FileName);
}
But, there may be some issues using depending on whether you are compiling to a 32- or 64- bit application. See the discussion here: [^]. Right after that post is an example showing how to use WMI.

On my Win 8/64 system GDrive runs two googledrivesync.exe processes, both resolve to the same file. Your mileage may vary.
If you seek to aid everyone that suffers in the galaxy, you will only weaken yourself … and weaken them. It is the internal struggles, when fought and won on their own, that yield the strongest rewards… If you care for others, then dispense with pity and sacrifice and recognize the value in letting them fight their own battles." Darth Traya

QuestionIncrease performance of csv Pin
sjs4u19-Dec-13 2:46
sjs4u19-Dec-13 2:46 
AnswerRe: Increase performance of csv Pin
Dave Kreskowiak19-Dec-13 3:14
mveDave Kreskowiak19-Dec-13 3:14 
AnswerRe: Increase performance of csv Pin
BillWoodruff19-Dec-13 3:23
professionalBillWoodruff19-Dec-13 3:23 
AnswerRe: Increase performance of csv Pin
Ennis Ray Lynch, Jr.19-Dec-13 3:33
Ennis Ray Lynch, Jr.19-Dec-13 3:33 
SuggestionRe: Increase performance of csv Pin
Richard Deeming19-Dec-13 3:43
mveRichard Deeming19-Dec-13 3:43 
AnswerRe: Increase performance of csv Pin
Eddy Vluggen19-Dec-13 7:57
professionalEddy Vluggen19-Dec-13 7:57 
AnswerRe: Increase performance of csv Pin
Mycroft Holmes19-Dec-13 12:03
professionalMycroft Holmes19-Dec-13 12:03 
AnswerRe: Increase performance of csv Pin
jschell19-Dec-13 14:15
jschell19-Dec-13 14:15 

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.