I got a bat file which conatin a command to create a folder.i executed it in jsp Runtime run =Runtime.getRuntime(); run.exec("C:\\sdf\\binnew.bat");
i run it fine.. but the folder not created.. why..? if any body know it, please help me. when i double click on the bat file its getting created [ October 22, 2007: Message edited by: biny panackal ]
Are you using absolute paths in the batch file? Keep in mind that web apps do not have a concept of a default directory, if you use relative paths, it's not going to work.
Is there a reason you're not using File.mkdir to accomplish the same?
Also remember that JSPs are executed on the server and not on the client; if you were trying to create a directory on the client's computer, this will not work.