posted 21 years ago
hi ..here i am creating a directriry by giving name in the code itself but i want to give it from front end..means i want to pass the direcory name as parameter..
here is my code..
can anyone come with modification to this code..
thanks in advance
<%@ page language="java" import="java.io.*"%>
<%
File f = new File("[drive]:/anypath/newdir");
if(f.exists()) {
out.println(f + " exists");
}
else { // Doesn't exist
f.mkdirs();
//out.println("created " + f);
}
%>