[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: test through java
import java.io.*;
class test
{
public static void main(String[] args)
{
File f ;
f = new File("c:/windows/win.ini");
if (f.isDirectory())
System.out.println("It is a dir");
else
System.out.println("It is not a dir");
}
}
output : It is not a dir
_______
deepak
At 7/27/00 8:41:00 PM, you 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
-----------------------------
reply soon
bye
__ deepak __
have a great day
ICQ 30662394
-- Momentum is what you give a person when they are going away.