Exemple #1
0
        private void menuItem253_Click(object sender, EventArgs e)
        {
            string file       = @"wordpad.exe";
            string fileToOpen = @m.Path_thongbao;//"..//..//..//doc//thongbao.rtf"
            backup f          = new backup(file, fileToOpen, true);

            f.Launch();
        }
Exemple #2
0
 private void menuItem101_Click(object sender, EventArgs e)
 {
     try
     {
         string path = Directory.GetCurrentDirectory().ToUpper();
         int    pos  = path.LastIndexOf("//MEDISOFT");
         if (pos != 0)
         {
             path = path.Substring(0, pos) + "//Setup";
         }
         string arg = " /qn /i \"" + path + "//zip.msi\"";
         backup e1  = new backup(@"msiexec", arg, false);
         e1.Launch();
         arg = "/qn /i \"" + path + "//Microsoft OLE DB Provider for Visual FoxPro.msi\"";
         backup e2 = new backup(@"msiexec", arg, false);
         e2.Launch();
         m.upd_thongso(101, "1", "1", "1");
     }
     catch { }
 }