HOW TO CREATE A NEW PROCESS WITHOUT USING THREADING IN JAVA AND - TopicsExpress



          

HOW TO CREATE A NEW PROCESS WITHOUT USING THREADING IN JAVA AND .NET IN JAVA import java.io.*; public class ap { public static void main(String args[]) throws IOException { ProcessBuilder p=new ProcessBuilder("notepad.exe","AA.TXT"); p.start(); } } According to code ,it might open notepad window with aa.txt file if aa.txt exist otherwise will create new aa.txt file. here ProcessBuilder is a class and start() is its method ,it you know about paranet class (object) in java , can use every method like(notify,resume,wait) here. In C#.net System.Diagnostics.Process.Start("notepad.exe","aa.txt"); who know .net can use it for any control(BUtton) with its event(Click) here System.diagnostics.process namespace is used and start() method is used. it Would be Helpfull(Rohit Kumar Mishra)
Posted on: Tue, 30 Jul 2013 18:35:40 +0000

Trending Topics



b>
The Religious Sadducees didnt believe in the resurrection of the
Bendy Alexander French wrote: Memories! I remember my first
Tweet icc-cricket Match Centre # Match 6 Bangladesh vs

Recently Viewed Topics




© 2015