Click here to Skip to main content
15,867,568 members
Home / Discussions / C#
   

C#

 
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 
QuestionNHibernate cascade delete not work Pin
LIttle_Cat19-Dec-13 1:30
LIttle_Cat19-Dec-13 1:30 
AnswerRe: NHibernate cascade delete not work Pin
Eddy Vluggen19-Dec-13 8:00
professionalEddy Vluggen19-Dec-13 8:00 
GeneralRe: NHibernate cascade delete not work Pin
LIttle_Cat20-Dec-13 2:02
LIttle_Cat20-Dec-13 2:02 
Questionproblem with RDLC after deploying the application Pin
Jassim Rahma18-Dec-13 23:49
Jassim Rahma18-Dec-13 23:49 
AnswerRe: problem with RDLC after deploying the application Pin
Dave Kreskowiak19-Dec-13 1:15
mveDave Kreskowiak19-Dec-13 1:15 
Questionhow to set half Pixel size in C# Pin
sagar siripuram18-Dec-13 19:48
sagar siripuram18-Dec-13 19:48 
AnswerRe: how to set half Pixel size in C# Pin
BillWoodruff18-Dec-13 20:47
professionalBillWoodruff18-Dec-13 20:47 
GeneralRe: how to set half Pixel size in C# Pin
OriginalGriff18-Dec-13 21:09
mveOriginalGriff18-Dec-13 21:09 
GeneralRe: how to set half Pixel size in C# Pin
BillWoodruff19-Dec-13 0:24
professionalBillWoodruff19-Dec-13 0:24 

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.