public void DeleteDb(string dbName) { DXVSExtensionPackage options = package as DXVSExtensionPackage; var deleteProcessPath = options.DeleteProgramFilePath; System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.StartInfo.FileName = deleteProcessPath; proc.StartInfo.Arguments = "-" + dbName; proc.Start(); }
void openInFork(string gitFolderName) { DXVSExtensionPackage options = package as DXVSExtensionPackage; var forkPath = options.ForkFilePath; System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.StartInfo.FileName = forkPath; gitFolderName = "\"" + gitFolderName + "\""; proc.StartInfo.Arguments = gitFolderName; proc.Start(); }
void backupDB(string dbName, string backupPath) { DXVSExtensionPackage options = package as DXVSExtensionPackage; var deleteProcessPath = options.BackupDBFilePath; System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.StartInfo.FileName = deleteProcessPath; backupPath = "\"" + backupPath + "\""; proc.StartInfo.Arguments = string.Join(" ", new string[] { dbName, backupPath }); proc.Start(); }