Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all.
How can i create a new folder using javascript?Is it possible ?????Kindly give me the suggestion if any one knows.


Thanks,
Posted
Updated 1-Feb-23 23:59pm

 
Share this answer
 
It is not possible to create a new folder or the file system using JavaScript alone. JavaScript runs in a browser and does not have access to the local file system for security reasons.
 
Share this answer
 
Hi,

you can make use of Scripting.FileSystemObject ActiveX object.
refer below article.
FileSystemObject.CreateFolder()[^]
File Handling at Client Side Using Javascript[^]

While using ActiveX objects, you must focus on the browser compatibility/settings.
check this[^]

hope it helps.
 
Share this answer
 

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