> Does anyone know how I can execute an OS command like "dir" from a
> servlet?
>
Runtime.getRuntime().exec()?
>
> And if it's possible, does it compromise the portability? I guess so.
>
I'll say. I don't even have "dir" on our server. I'm sure there are
much better ways of getting directory listings from Java itself - I've not
investigated.
___________________________________________________________________________
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