123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Diagnostics;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- using UMES.DLLService;
- namespace TestProject
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- DataHelper dh = new DataHelper();
- MESHelper mes = new MESHelper();
- string Err = "";
- string Json = "";
- mes.GetMobileAllInfo("FG09P1M1C840000014", out Json, out Err);
- mes.GetMobileAllInfo("FG01P1M2C7R0000132", out Json, out Err);
- mes.GetMobileAllInfo("FG01P1M2C7R0000160", out Json, out Err);
- mes.GetMobileAllInfo("FG01P1M2C7R0000182", out Json, out Err);
- mes.GetMobileAllInfo("FG01P1M2C7R0000198", out Json, out Err);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- public void exec(string exePath, string parameters)
- {
- Process process = new Process();
- process.StartInfo.FileName = "cmd.exe";
- process.StartInfo.UseShellExecute = false;
- process.StartInfo.RedirectStandardInput = true;
- process.StartInfo.RedirectStandardOutput = true;
- process.StartInfo.CreateNoWindow = true;
- process.StartInfo.RedirectStandardError = true;
- process.Start();
- process.StandardInput.WriteLine(" wmic os get SerialNumber /value");
- process.StandardInput.WriteLine(" wmic bios get SMBIOSBIOSVersion / value");
-
- process.StandardInput.Close();
- string add = process.StandardOutput.ReadToEnd();
- Console.WriteLine(add);
- process.Close();
- }
- }
- }
|