Hi,
For these kind of commands (ie file system specific commands) it is
better to use the java classes to handle portability issues so for dir
(or ls on UNIX) why not use
java.io.File.list()
Hope this helps
Karl
(ps please can you use plain text when posting to the list as your html
is messing with my mail tool. Ta :-)
Pol Millan wrote:
> Does anyone know how I can execute an OS command like "dir" from a
> servlet? And if it's possible, does it compromise the portability? I
> guess so. Thanks, Pol Millan
> top-pile.com
> Ibex House
> 162-164 Arthur Road
> Wimbledon Park
> London, SW19 8AQ
> Tel: +44 (0)181 255 6777
> Fax: +44 (0)181 255 6776
> Web: www.top-pile.com (& follow links)
> Email: [EMAIL PROTECTED]
___________________________________________________________________________
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