By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,451 Members | 994 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,451 IT Pros & Developers. It's quick & easy.

Creating a file

P: n/a
It there another was to do this
var fso = new ActiveXObject('Scripting.FileSystemObject');

Im trying to run a javascript file automatically, but it complains that I
have to say YES to Active X.

Thanks
Mark
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a


Mark wrote:
It there another was to do this
var fso = new ActiveXObject('Scripting.FileSystemObject');

Im trying to run a javascript file automatically, but it complains that I
have to say YES to Active X.


If you are on Windows and want script to access the file system then
consider using a HTML application (.hta file), if you save that locally
and then start it script in it can access the file system or do other
stuff script inside a browser is usually not allowed. Of course if you
put your .hta on a web server others would need to download it and run
it locally too to have the script access the file system.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.