mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-10 05:34:13 +00:00
Fixed Process.Start error
This commit is contained in:
parent
a23a379cb2
commit
bc5a1fc5d8
1 changed files with 12 additions and 1 deletions
|
@ -511,7 +511,18 @@ namespace UWUVCI_AIO_WPF
|
|||
{
|
||||
try
|
||||
{
|
||||
Process.Start("UWUVCI VWII.exe");
|
||||
var p = new Process();
|
||||
var fileName = Application.ResourceAssembly.Location;
|
||||
foreach (var file in Directory.GetFiles(Directory.GetCurrentDirectory(), "*.exe"))
|
||||
if (!Path.GetFileName(file).Contains(Path.GetFileNameWithoutExtension(fileName)))
|
||||
{
|
||||
fileName = file;
|
||||
break;
|
||||
}
|
||||
|
||||
p.StartInfo.FileName = fileName;
|
||||
p.Start();
|
||||
|
||||
Environment.Exit(0);
|
||||
}
|
||||
catch
|
||||
|
|
Loading…
Reference in a new issue