Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
<input type="text" name="text1" id="text1"/>

<%
String s=request.getParameter("text1");
java.io.File file = new File("c:/jk");

if (!file.exists())

file.mkdirs();

else

out.println("the file exists");

%>

how can i assign name of that folder on run time instead of jk...

that means i gave a random name in text1 and folder should be saved with that random name..
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900