Background process in windows

18 views
Skip to first unread message

Manjeet Sharma

unread,
Jul 10, 2009, 7:32:18 AM7/10/09
to technical-...@googlegroups.com
Hi,

I am trying to run a command on WINXP as a background process.

i have tried , but it does not work e.g.
cmd /c notepad.exe


please tell me any solution for the same.

Thanks
--
----
(Manjeet Sharma)
Senior Software Engineer
Lumenare Networks
+91-9910028948

On Mon, Jul 6, 2009 at 5:43 PM, subhi <subhi....@gmail.com> wrote:

Hi Friends,
I haven't any idea about struts but see below link if it can help out
you.

http://struts.apache.org/2.1.2/docs/token-interceptor.html

Subhash.

On Jul 2, 9:57 pm, Sandeep Kadyan <sandeep.kad...@gmail.com> wrote:
> Hi
> I am also searching the best technique for this. I found in strut2 docs that
> there is in-built support for handling this situation using
> TokenIntercepter. I did not get the complete technique used in this
> mechanism. Does anybody knows other technique?
>
> Sandeep Kadyan
> e-M@il:sandeep.kad...@gmail.com
> Skype IM: sandeep.kadyan
> YIM: thekadi...@yahoo.com
> Cell:-+91 99116 14500
>
>
>
> On Thu, Jul 2, 2009 at 9:51 PM, Rajnish <rajnis...@gmail.com> wrote:
>
> > What are the best techniques to protect a user from hitting submit
> > button of the form twice. Ensure that we should not use JAVASCRIPT.- Hide quoted text -
>
> - Show quoted text -




--
----
(Manjeet Sharma)
Senior Software Engineer
Lumenare Networks
+91-9910028948

Sandeep Kadyan

unread,
Jul 10, 2009, 7:53:58 AM7/10/09
to technical-...@googlegroups.com
We can use
"start" command to start a process in a separate window.

Note: java program can be start in background by using javaw.exe instead of java.exe


Sandeep Kadyan
e-M@il:sandeep...@gmail.com
Skype IM: sandeep.kadyan
YIM: theka...@yahoo.com
Cell:-+91 99116 14500

Rajnish

unread,
Jul 14, 2009, 10:39:01 AM7/14/09
to Technical Discussion
Both cmd are start run a process but not as backgroung process
If I write something like:

Runtime.getRuntime().exec("cmd /c notepad.exe");

the Java console will not terminate. When I close the notepad then the
java application terminates. (means not in background).
Can Threads help in this regard

There is similar post on net
http://www.java-forums.org/new-java/8043-how-run-exe-background.html


Please reply if someone finds exact answer.

On Jul 10, 4:53 pm, Sandeep Kadyan <sandeep.kad...@gmail.com> wrote:
> We can use
> "start" command to start a process in a separate window.
>
> Note: java program can be start in background by using javaw.exe instead of
> java.exe
>
> Sandeep Kadyan
> e-M@il:sandeep.kad...@gmail.com
> Skype IM: sandeep.kadyan
> YIM: thekadi...@yahoo.com
> Cell:-+91 99116 14500
>
> On Fri, Jul 10, 2009 at 5:02 PM, Manjeet Sharma <sharma.manj...@gmail.com>wrote:
>
>
>
> > Hi,
>
> > I am trying to run a command on WINXP as a background process.
>
> > i have tried , but it does not work e.g.
> > cmd /c notepad.exe
>
> > please tell me any solution for the same.
>
> > Thanks
> > --
> > ----
> > (Manjeet Sharma)
> > Senior Software Engineer
> > Lumenare Networks
> > +91-9910028948
>
> > +91-9910028948- Hide quoted text -

Praveen

unread,
Jul 16, 2009, 2:20:19 AM7/16/09
to Technical Discussion
try to user
Process p = Runtime.getRuntime().exec(cmd);
if (p != null)
{
p.waitFor();
}

this will cause the process to wait until you terminet the browser or
notepad

On 14 July, 19:39, Rajnish <rajnis...@gmail.com> wrote:
> Both cmd are start run a process but not as backgroung process
> If I write something like:
>
> Runtime.getRuntime().exec("cmd /c notepad.exe");
>
> the Java console will not terminate. When I close the notepad then the
> java application terminates. (means not in background).
> Can Threads help in this regard
>
> There is similar post on nethttp://www.java-forums.org/new-java/8043-how-run-exe-background.html
>
> Please reply if someone finds exact answer.
>
> On Jul 10, 4:53 pm, Sandeep Kadyan <sandeep.kad...@gmail.com> wrote:
>
>
>
> > We can use
> > "start" command to start a process in a separate window.
>
> > Note: java program can be start in background by using javaw.exe instead of
> > java.exe
>
> > Sandeep Kadyan
> > e-M@il:sandeep.kad...@gmail.com
> > Skype IM: sandeep.kadyan
> > YIM: thekadi...@yahoo.com
> > Cell:-+91 99116 14500
>
> > On Fri, Jul 10, 2009 at 5:02 PM, Manjeet Sharma <sharma.manj...@gmail.com>wrote:
>
> > > Hi,
>
> > > I am trying to run a command on WINXP as a background process.
>
> > > i have tried , but it does not work e.g.
> > > cmd /c notepad.exe
>
> > > please tell me any solution for the same.
>
> > > Thanks
> > > --
> > > ----
> > > (Manjeet Sharma)
> > > Senior Software Engineer
> > > Lumenare Networks
> > >              +9...       
> > - Show quoted text -- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages