Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes Problem with Using Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Problem with Using "FileSystemObject"" Watch "Problem with Using "FileSystemObject"" New topic
Author

Problem with Using "FileSystemObject"

yan li
Greenhorn

Joined: Aug 22, 2002
Posts: 1
It does work when I visit a HTML file that contains "FileSystemObject" from my local computer.
But when I put that HTML file onto TOMCAT or JRUN , it shows error in IE msgBox.
My JScript Code is like this:
function FileSize()
{
fso = new ActiveXObject("Scripting.FileSystemObject")
a = fso.getFile('E:/tr_work/develop/web/sample/top.html');
alert(a.size);
return;
}
Sean MacLean
author
Ranch Hand

Joined: Nov 07, 2000
Posts: 621
"liyan",
Thanks for participating here at the Ranch. However, the name you are using does not comply with our naming convention described at http://www.javaranch.com/name.jsp . Please log in with a new name, which meets these requirements.
You can change your name here.
Thanks.
Sean
 
jQuery in Action, 2nd edition
 
subject: Problem with Using "FileSystemObject"
 
Similar Threads
Is it possible to write javascript to display files in textarea?
html download help required
Write file to client file system
dom with VB and Javascript
How to save a page ?