private bool CheckSetPath(string chosenService) { bool t = false; if (customSetPath != String.Empty) { if (Directory.Exists(customSetPath)) { if (!customSetPath.Contains("AssistantComputerControl") && !customSetPath.Contains("assistantcomputercontrol")) { customSetPath = Path.Combine(customSetPath, "AssistantComputerControl"); MainProgram.DoDebug("Changed path to include 'AssistantComputerControl': " + customSetPath); if (!Directory.Exists(customSetPath)) { Directory.CreateDirectory(customSetPath); } } Properties.Settings.Default.ActionFilePath = customSetPath; Properties.Settings.Default.Save(); MainProgram.SetupListener(); t = true; } } else { string checkPath = CloudServiceFunctions.GetCloudServicePath(chosenService); MainProgram.DoDebug("Checking: " + checkPath); if (!String.IsNullOrEmpty(checkPath)) { if (Directory.Exists(checkPath)) { if (!checkPath.Contains("AssistantComputerControl") && !checkPath.Contains("assistantcomputercontrol")) { checkPath = Path.Combine(checkPath, "AssistantComputerControl"); MainProgram.DoDebug("Changed path to include 'AssistantComputerControl': " + checkPath); if (!Directory.Exists(checkPath)) { Directory.CreateDirectory(checkPath); } } Properties.Settings.Default.ActionFilePath = checkPath; Properties.Settings.Default.Save(); MainProgram.SetupListener(); t = true; } } } if (Properties.Settings.Default.ActionFilePath == MainProgram.currentLocation) { MainProgram.DefaultPathIssue(); } return(t); }