How C # calls executable program arguments

Source: Internet
Author: User

 /// <summary>        ///Lis Interface, said to be as long as the interface to start their FTP together, I do not know what to do, anyway, according to the requirements of LIS to do bai \///by WEIHF 2014-9-1///to WEIHF: In order to update the LIS program///         /// </summary>        /// <returns></returns>        Private voidstarlisftp () {Try{system.diagnostics.process[] proc= System.Diagnostics.Process.GetProcessesByName ("neulisftp"); if(Proc. Length >0)                {                     for(inti =0; I < Proc. Length; i++) {Proc[i].                    Kill (); }                }                stringPath = Application.startuppath +"\\neusoftlis/"+"NeuLisFTP.exe"; Neusoft.HISFC.Models.Base.Employee ConInfo= Neusoft.FrameWork.Management.Connection.Operator asNeusoft.HISFC.Models.Base.Employee; stringStrargument = ConInfo.Dept.ID +","+ ConInfo.Dept.Name +","+ ConInfo.Dept.ID +","+ ConInfo.Dept.Name +","+ ConInfo.Nurse.ID +","+ ConInfo.Nurse.Name +","+ conInfo.EmployeeType.ID.ToString () +","+"hospitalization"; System.Diagnostics.ProcessStartInfo PInfo=NewSystem.Diagnostics.ProcessStartInfo (path, strargument); System.Diagnostics.Process Process=NewSystem.Diagnostics.Process (); Process. StartInfo=PInfo; Process. Startinfo.useshellexecute=false; Process.            Start (); }            Catch(Exception ex) {MessageBox.Show ("Start the crisis value program error, please start manually or contact the information section! "+Ex.            Message); }        }     #regionby YANG.BF September 25, 2015 16:40:36 {d986e343-de6b-410a-89ef-47f93418cde1} whether the LIS automatic Update is turned on at the nurse stationNeusoft.FrameWork.Management.ControlParam ctlmgr=NewNeusoft.FrameWork.Management.ControlParam (); if(Ctlmgr.querycontrolerinfo ("Kh_lis") =="1")                {                  if(System.IO.File.Exists (neusoft.framework.winforms.classes.function.currentpath+"\\NeusoftLis\\NeuLisFTP.exe") {Thread lisftp=NewThread ( This.                    STARLISFTP); Lisftp.name="neulisftp"; Lisftp.isbackground=true;                  Lisftp.start (); }                  Else{MessageBox.Show ("There are no NeuLisFTP.exe files in the Neusoftlis directory"); }                }                      #endregion

How C # calls executable program arguments

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.