tring filepath = "D:\\JournalImport"; String cmd = "-Command "; System.Diagnostics.Process process = new System.Diagnostics.Process(); process.StartInfo.FileName = "D:\\JournalImport\\JrnlImport.ps1"; process.StartInfo.WorkingDirectory = filepath; process.StartInfo.Arguments = cmd; process.Start(); process.WaitForExit(15000000); process.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)