Re: Contents of a Directory

From: Steven Livolsi (steven.livolsi_at_ngc.com)
Date: 12/02/04


Date: Thu, 2 Dec 2004 12:14:38 -0500

Thanks.

I tried using the File System Objects in my java scipt but it looks like
the java script code bombed.

It bombed on the statement:

fso = new ActiveXObject("Scripting.FileSystemObject");

If I comment out the above statement, my java script function does not bomb.

Is there a setting or something I need to do with my windows 2003 IIS sever?
Is there an include file I need?

My java script is:

<script language=javascript>

function select_change()
{
.
.
.
var fso;
fso = new ActiveXObject("Scripting.FileSystemObject");
.
.
.
}

</script>

Here's part
"Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
news:%23HvzBK$1EHA.3324@tk2msftngp13.phx.gbl...
> "Steven Livolsi" <steven.livolsi@ngc.com> wrote in message
> news:Ow0V54#1EHA.1860@TK2MSFTNGP15.phx.gbl...
> > Maybe I wasn't clear. All I want is to get the directory names and file
> > names that are contained in a specified directory path.
> >
> > A filename.dll will be executing this code.
>
> Depends on what language/tool you're using. Most of the time you can
> reference the COM based filesystemobject:
>
http://msdn.microsoft.com/library/en-us/script56/html/FSOoriFileSystemObject.asp
>
> Here's a reference to the Platform SDK:
>
http://msdn.microsoft.com/library/en-us/fileio/base/listing_the_files_in_a_directory.asp
>
> If you're using dot net, see the System.IO classes:
> http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemIO.asp
>
>



Relevant Pages

  • Re: I need help please....
    ... > I've copied the appropriate Java Script code into my html code on the index ... From the OS/2 WARP v4.5 Desktop of Brad BARCLAY. ...
    (comp.lang.java)
  • Re: function and arguments as aguments
    ... Well I thought there was and I researched java script to see if you can ... invoke a string containing java script code. ...
    (comp.lang.javascript)
  • java script
    ... I have java script code to put into my web page. ... in the Publisher software to have it wrk correctly. ... Prev by Date: ...
    (microsoft.public.publisher.webdesign)