示例#1
0
        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();
        }
示例#2
0
        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();
        }
示例#3
0
        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();
        }