i have some troubles with my application. It's a winForm app which has a this code :
var processInfo = new ProcessStartInfo("myfile.bat")
{CreateNoWindow = true, UseShellExecute = false};
processInfo.Verb = "runas";
var process1 = Process.Start(processInfo);
process1.WaitForExit();
process1.Close();
Now cause a bug in third party dll i need a watchdog to restart program when it crashes.
Now if i start the program manually i havent any problem but when the watchdog start my program it wont start myfile.bat.
It happen on Win7 And WinXp. I tried to disable UAC in Win7 but nothing.
I Used admin hidden account in xp and win7 too, but nothing. How could i fix this problem?