![]() |
|
|
|
#1 |
|
Hi
I have one Page1.ASPX. On Button CLick event, it initiates another Jar execution thru System.Process object. Sometimes this process may take from 15 to 30 min... Even if the user goes out of the screen also, the process should run asynchronously and complete the job. How Can we make this process asynchronous?? Can anybody provide Code Snippet? //Button Click Event for running .jar file protected void btnRun_Click(object sender, EventArgs e) { String strJarFilePath = "\\RunPull.jar"; Process proc = new Process(); try { proc.StartInfo.FileName = "java"; proc.StartInfo.Arguments = "-jar " + strJarFilePath; proc.StartInfo.CreateNoWindow = false; proc.StartInfo.WindowStyle = ProcessWindowStyle.Normal; proc.StartInfo.UseShellExecute = false; DirectoryInfo currentDir = new DirectoryInfo(Environment.CurrentDirectory); proc.StartInfo.WorkingDirectory = currentDir.FullName; proc.Start(); } catch (Exception ex) { throw new Exception("Failed to start Pull process"); } Any solution or code reference would really be appreciated. Thanks Ritha |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to make the system.process as asynchronous from asp.net page button click event? | Ritha | Software | 0 | 09-29-2009 08:17 AM |
| How to activate Remote Assistance with XP using Windows Live Messenger | Oziisr | General Help Related Topics | 0 | 02-01-2008 04:45 PM |
| How to make your wonderful photo and video slideshow on DVD | kricww@gmail.com | DVD Video | 0 | 04-20-2006 07:26 AM |
| winsock.dll | J | A+ Certification | 7 | 07-20-2004 01:01 AM |
| Latest Tech Fiasco... | Ghost | A+ Certification | 30 | 01-09-2004 12:15 PM |