[Javascript] Can I Give Myself a Cookie ?

David Lovering dlovering at gazos.com
Thu Apr 24 10:03:34 CDT 2003


Admittedly, most of the tricks I've seen recently depend on Microsoft
extensions to IE in the JScript/Javascript
department.  I would refer you to

File.Attributes
File.Copy
File.DateCreated
File.DateLastAccessed
File.DateLastModified
File.Delete
File.Drive
File.Move
File.Name
File.OpenAsTextStream
File.ParentFolder
File.Path
File.ShortName
File.ShortPath
File.Size
File.Type

In addition, there are some nifty Folder commands/Attributes as well:

Folder.Copy
Folder.Delete
Folder.Move
Folder.Attributes
Folder.DateCreated
Folder.DateLastAccessed
Folder.DateLastModified
Folder.Drive
Folder.Files
Folder.IsRootFolder
Folder.Name
Folder.ParentFolder
Folder.Path
Folder.ShortName
Folder.ShortPath
Folder.Size
Folder.SubFolders
Folder.Type

The Folder.Files directive returns an array of all the file objects within
the folder specified.  Using File.Type in a loop enables you to examine each
one in turn.  Opening each one as a text stream is useful for breaking out
the contents (does not work for hidden files, for obvious reasons).

There are a number of other similar directives which I won't elucidate upon,
given the space restrictions.

It should be noted that these are Microsoft's Scripting Engine Extensions,
and are in most cases specific to late-model IE implementations.  I'm
convinced that the bulk of these were originally written to facilitate
server-side Javascripts, but according to the MS Technotes these are
ostensibly offered within each client browser as well.

I hope this explains my impressions voiced in the earlier message(s).

-- Dave Lovering

P.S:  I would refer you to Chapter 9, "Microsoft's Scripting Engine
Extensions" in the SAMS book "Pure Javascript" by Wyke, Gilliam, and Ting.
I was working off the 1999 edition, but I understand there's a newer one
out.  Similar kinds of extensions exist in the Netscape regime, but of
course it would be unwise to presume that the two sets are in any way
one-to-one and onto.
----- Original Message -----
From: "Chris Tifer" <christ at saeweb.com>
To: "[JavaScript List]" <javascript at LaTech.edu>
Sent: Wednesday, April 23, 2003 8:03 AM
Subject: Re: [Javascript] Can I Give Myself a Cookie ?


> > Any directory on the client's machine which contains files which can be
> > imported, tested for existence, or otherwise accessed as part of an
active
> window
> > document is what I meant by "accessible".
>
> I must be mistaken, but I know of absolutely no ways to import
directories.
> There is a way to browse for a single file, but you cannot use any
> JavaScript to
> read the value in this field.
>
> Also, there is no way to test for existance of a file or directory
strictly
> through script if run in the context of the browser - at least not in a
> major
> browser. Now if you were to go download the browser of some schmoe
> who's making it available, then of course he could program in some
> exploit, but you'd deserver it for using some untested browser.
>
> Can you please give us an example of how to check for existance of a
> file or directory?
>
> Chris Tifer
> http://emailajoke.com
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>




More information about the Javascript mailing list