Click here to Skip to main content
15,908,015 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.

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

you can make use of Scripting.FileSystemObject ActiveX object.
refer below article.
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