scrrun.dll, which implements filesystemobject, is not installed by default
by IE. If you goto the scripting website there is a cab with just
scrrun.dll in it so you can put an object tag on your page and it will
install if it's not an users machine
--
Regards
Andrew Clinick
Microsoft Scripting Program Manager
http://microsoft.com/scripting
Quote:
>Hi,
>this code works on my computer win95 IE4.01 SP1 ... and does not work on
>another with win95 IE4.01 SP1 (same configuration!)
>function batchs()
>{
>var desc = new ActiveXObject("Scripting.FileSystemObject");
>var bat = desc.CreateTextFile("c:\\tmp\\conf.bat", true);
>bat.WriteLine("net config workstation > c:\\net.txt");
>bat.WriteLine("ipconfig /all > c:\\ip.txt");
>bat.WriteLine("copy c:\\net.txt + c:\\ip.txt +
>c:\\progra~1\\E!pc\\default.xcp
>c:\\tmp\\conf.txt");
>bat.Close();
>document.forms[1].submit();
>}
>the problem is on the line new ActiveXObject
("Scripting.FileSystemObject");
Quote:
>and IE says line ... an ActiveX componant can not create an object
> .... .... so is there a file or an object that I need to create this kind
>of activeXobject that is on my PC and not on the other one ???
>Help please ... sorry for my bad english
> nicolas