Also have a look at this article :
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
Mukul
> -----Original Message-----
> From: Siddiqui A. Ammar [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 28, 2001 5:50 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How can I execute a DOS command from a JSP
>
>
> Thank you Arun for helping me out
> Regards
> Ammar
>
>
>
> Arun
> <[EMAIL PROTECTED] To:
> [EMAIL PROTECTED]
> > cc:
> Sent by: "A mailing Subject:
> Re: How can I execute a DOS command
> list for discussion from a JSP
> about Sun
> Microsystem's Java
> Servlet API
> Technology."
> <SERVLET-INTEREST@JAV
> A.SUN.COM>
>
>
> 08/28/01 12:20 PM
> Please respond to "A
> mailing list for
> discussion about Sun
> Microsystem's Java
> Servlet API
> Technology."
>
>
>
>
>
>
> Use the Runtime class to invoke a dos command as :
>
> //Call the command line from the runtime environment
> Process process = Runtime.getRuntime().exec(command);
> //At present wait for the command to finish before continuing
> process.waitFor();
>
>
>
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's
> Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> Siddiqui A. Ammar
> Sent: Tuesday, August 28, 2001 5:24 PM
> To: [EMAIL PROTECTED]
> Subject: How can I execute a DOS command from a JSP
>
>
> Hi everybody,
> How can I execute a DOS command from a JSP?
>
> ______________________________________________________________
> _____________
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html