[Javascript] path of file

Peter Brunone peter at brunone.com
Thu Aug 2 10:01:25 CDT 2001


Andrew,

    If you have a directory defined as currentDir =
obj_fso.GetFolder(foldername) -- where foldername is an absolute path --
then you should be able to access the parent directory via the
currentDir.ParentFolder property.


----- Original Message -----
From: "Andrew Dunn" <adunn at interworx.com.au>
To: <javascript at LaTech.edu>
Sent: Wednesday, August 01, 2001 8:43 PM
Subject: [Javascript] path of file


| Hi,
|    I'm trying to specifiy a path name of a folder that is one folder above
| the current one. Normally I would use "../thefolder" to specify it. But
for
| some reason this is not working. I'm using ActiveX object (file system
| object) in conjuction with Jscript. The line is:
|
|
| folder_spec = obj_fso.GetAbsolutePathName("../quotes");
|
|
| But this returns "C:/windows/quotes" which is not the folder location.
|
| Can anyone help me with this?
|
|
| Thanks.
| Andrew
|




More information about the Javascript mailing list