0

Possible Duplicate:
Modifying Local Files Using HTML5 and JavaScript

I know we can read a local file that has been selected by the user, but is there the ability to rename or write to local files in javascript?

Community
  • 1
  • 1
luca
  • 12,311
  • 15
  • 70
  • 103
  • 1
    You can write data to a file and make the browser download that, but that's all sandboxed. You cannot modify any file/directory outside that sandbox. – pimvdb Aug 29 '11 at 14:51

1 Answers1

1

There is no way to natively write the filesystem in Javascript, for obvious security reasons.

However, if you must, there is an ActiveX object (Only in IE). It's Scripting.FileSystemObject.

You will find the documentation about that beast on the msdn site.

slaphappy
  • 6,894
  • 3
  • 34
  • 59