HelperEDADatabase
HelperEAFProgramData HelperCompass HelperInfinityQS HelperSerial HelperTCP dotnet_analyzer_diagnostic
This commit is contained in:
27
Helpers/HelperInfinityQS.cs
Normal file
27
Helpers/HelperInfinityQS.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using File_Watcher.Models;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace File_Watcher.Helpers;
|
||||
|
||||
internal static partial class HelperInfinityQS
|
||||
{
|
||||
|
||||
internal static bool RunMI(AppSettings appSettings, ILogger<Worker> logger)
|
||||
{
|
||||
#pragma warning disable CA1416
|
||||
logger.LogInformation(appSettings.Company);
|
||||
ProcessStartInfo processStartInfo = new("iispcmi.exe")
|
||||
{
|
||||
Domain = "Infineon",
|
||||
UseShellExecute = false,
|
||||
UserName = "ecfisysadmin",
|
||||
PasswordInClearText = "j(1(P%xB=g}3w9db",
|
||||
WorkingDirectory = "C:/Program Files (x86)/InfinityQS International/ProFicient/Applications"
|
||||
};
|
||||
Process process = Process.Start(processStartInfo) ?? throw new NullReferenceException(nameof(Process));
|
||||
process.WaitForExit();
|
||||
#pragma warning restore CA1416
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user