Connecting Tech Pros Worldwide Forums | Help | Site Map

scripting.FileSystemObject not working with mozilla Firefox

Newbie
 
Join Date: Jun 2007
Posts: 1
#1: Jun 30 '07
Hi,
I am using following function to check for a file on client it works for IE after setting browser security to low level but does not work for Firefox. please provide me information whether their exists alternative for FileSystemObject and other ActiveX objects in Firefox or could the same code may work on Firefox and other browsers making some specific settings to browser.
Thanks.
function checkFile()
{
var found=0;
var foldobj=new ActiveXObject("Scripting.FileSystemObject");
if((navigator.userAgent.indexOf('Win') != -1))
{
var myfolder=foldobj.GetFolder("c:\\");
var z=myfolder.Files.Count;
var fil_col=myfolder.Files;
var en=new Enumerator(fil_col);
for(;!en.atEnd();en.moveNext())
{
if (en.item().Name.indexOf("voice_temp.wav")!=-1)
{
found=1;
break;
}
}
}
return found;
}

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Jul 2 '07

re: scripting.FileSystemObject not working with mozilla Firefox


Welcome to TSDN!

Firefox and most other browsers do not allow access to the local file system for security reasons.

There is an ActiveX project for Firefox (link), but if you ge it working in Firefox, what about other browsers?
Reply