
what code we should write as a web application that it create an empty folder on client's desktop?

hi friend,
To create a new file you may use the mkdir() method of java.io.File class.
And to create the folder at user's desktop you may use the following code :
String homeDirectory = System.getProperty("user.home");
String desktopPath = homeDirectory+"\\desktop";
File folder = new File(desktopPath+"\\NewFolder");
boolean bol = folder.mkdir();
if(!bol)
{
System.out.println(folder.getParent()+" : There is a problem in creating New Folder");
}
else
System.out.println("Folder created at "+folder.getParent()+" successfully");
for detail tutorial you can go through this link Java Create Directory

thanks for responding but i want to know what code to run on server desktop which will be able to create folder on client desktop along with some qurys running on server database.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.