FileSystem Object 
Author Message
 FileSystem Object

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();

Quote:
}

the problem is on the line new ActiveXObject ("Scripting.FileSystemObject");
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



Sun, 28 Jan 2001 03:00:00 GMT  
 FileSystem Object
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");

- Show quoted text -

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



Sun, 28 Jan 2001 03:00:00 GMT  
 FileSystem Object
Thanx for your answer ...

I have downloaded the .cab ... extracted it ... installed the .inf file ...
and it does not work ... is there anything more to do or to have on the
computer ?
And, the installation does not work under Win NT 4.0 ... so is there another
.cab for win NT ?

         Regards.

                        Nicolas.



Tue, 30 Jan 2001 03:00:00 GMT  
 FileSystem Object
This should work.  What happens on your NT box?

--
Regards

Andrew Clinick
Microsoft Scripting Program Manager
http://microsoft.com/scripting

Quote:

>Thanx for your answer ...

>I have downloaded the .cab ... extracted it ... installed the .inf file ...
>and it does not work ... is there anything more to do or to have on the
>computer ?
>And, the installation does not work under Win NT 4.0 ... so is there
another
>.cab for win NT ?

>         Regards.

>                        Nicolas.



Mon, 05 Feb 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. performance of FileSystem-object

2. FSO (FileSystem object)

3. FileSystem Object Read Order

4. filesystem object

5. Problem with filesystem object

6. Filesystem Object

7. Filesystem Object

8. Filesystem object UNC Path Error

9. Problems with Filesystem object Copy method

10. Filesystem object

11. GetFolder method for FileSystem Object not working on Win2000

12. FileSystem Object Network Path Error

 

 
Powered by phpBB® Forum Software