[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: test through java



Chetan,
        Try the following
create an object of Runtime class and use the "exec" method
        eg--
            Runtime run = Runtime.getRuntime();
            Process p = run.exec ("test -d <some directory> ");
Bye
R.Anil Kumar


Chetan Gopal Kashinath wrote:

> hi all,
>
>     i want to execute " test -d <some directory> " through my java file....
> is it possible ?? how do i do it ??
>
> thank you
> - chetu
>
> ----------------------------------------------------------------------
> The LIP mailing list archives are available at:
> http://lists.linux-india.org/cgi-bin/wilma/linux-india-programmers