Hi,
Unarchiving sucks all the memory or system resources, as i don't know what is going on.
I have a utility which unarchive hundreds of files but while unarchiving the files it does not allow me to do any thing.
Example, while unarchiving, even I open internet explore it does not even allow me to type in the
url(Explorer keeps flickering) or what ever window I go that window keeps flickering while the code is running.
This is the code I'm using
ProcessStartInfo psinfo;
Process process;
process = null;
psinfo = new ProcessStartInfo ();
psinfo.FileName = filePath;
psinfo.Arguments = "-s";
psinfo.WorkingDirectory = Path.GetDirectoryName(filePath);
psinfo.CreateNoWindow = true;
psinfo.WindowStyle = ProcessWindowStyle.Hidden;
try
{
process = System.Diagnostics.Process.Start(psinfo);
process.Close();
DeleteFile(filePath);
}
catch
{
process.Kill();
process.Close();
throw;
}
As long as this utility is running, it does not allow me to do anything.
what is the trick I'm missing.
Unarchiving sucks all the memory or system resources, as i don't know what is going on.
I have a utility which unarchive hundreds of files but while unarchiving the files it does not allow me to do any thing.
Example, while unarchiving, even I open internet explore it does not even allow me to type in the
url(Explorer keeps flickering) or what ever window I go that window keeps flickering while the code is running.
This is the code I'm using
ProcessStartInfo psinfo;
Process process;
process = null;
psinfo = new ProcessStartInfo ();
psinfo.FileName = filePath;
psinfo.Arguments = "-s";
psinfo.WorkingDirectory = Path.GetDirectoryName(filePath);
psinfo.CreateNoWindow = true;
psinfo.WindowStyle = ProcessWindowStyle.Hidden;
try
{
process = System.Diagnostics.Process.Start(psinfo);
process.Close();
DeleteFile(filePath);
}
catch
{
process.Kill();
process.Close();
throw;
}
As long as this utility is running, it does not allow me to do anything.
what is the trick I'm missing.