/// <summary> /// 创建指定命令的bat文件 /// </summary> public static string createTmpBat(String cmd) { String filePath = DependentFiles.toolsDir() + (singleBat ? "CMD_FILE" : DateTime.Now.Ticks.ToString()) + ".bat"; FileProcess.SaveProcess(cmd, filePath, Encoding.Default); return(filePath); }
private static bool ManActivityIsConfiged(string configPath) { string configData = FileProcess.fileToString(configPath).Replace("\r\n", "\n"); string[] A = configData.Split('\n'); foreach (string a in A) { if (a.Trim().StartsWith("GameEntryActivity=")) { return(true); } } return(false); }