473,406 Members | 2,451 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

scripting.FileSystemObject not working with mozilla Firefox

1
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;
}
Jun 30 '07 #1
1 15018
acoder
16,027 Expert Mod 8TB
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?
Jul 2 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: NeilS | last post by:
I'm developing under IIS V5.1 and testing on an ethernet with IIS hosted on WinXPPro. I am trying to implement file-upload using a polished version of the technique published in...
4
by: Derek | last post by:
I have the following script in a page and it gets an error in IE 6. Says something about an invalid argument but the line number doesn't help since I can't see the javascript code when viewing...
2
by: Stavros | last post by:
Hi all when I execute the following VB6 code in Windows 2000 and as an Administrator, everything is working fine. Project->References->"Microsoft Scripting Runtime" and scrrun.dll is located...
4
by: MoF | last post by:
Hello! I have for a long time used the line: Set FS=Server.CreateObject("Scripting.FileSystemObject") in my ASP code. Suddenly one day this week it stopped working and I now get the error: ...
0
by: BACON | last post by:
I'm just starting the process of reorganising my modest little website and cleaning up all the HTML, and the logical place to begin was with the homepage. I made a simple little ASP.NET control...
6
by: Andrew Neiderer | last post by:
I apologize for such an elementary question but I am new to PHP. If there is an FAQ that addresses this please let me know. I have some PHP that works fine on my Dell Win2K XP when I use...
5
by: VancouverMike | last post by:
Hi there, I am writing a web app using asp.net 1.1 and C#. This web app is launched in another win32 application and this app needs to pass information to my web app. But this win32 application...
2
by: sajithamol | last post by:
How can i migrate one application from IE to Mozilla Firefox. while working in IE , javascript was working perfectly . But when i used Mozilla firefox , javascript not working. How can i make one...
6
by: honey99 | last post by:
Hi! I have to fix a problem in firefox.Actually i have to read local files in IE and firefox.but the below code is working only in IE but not in mozilla.Any solution plz.... function...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.