File.Name (Property)

The name of the file.

Availability:

JScript - 3.0
Internet Explorer - 4.0
Property/method value type:String primitive
JavaScript syntax:IEmyFile.Name

The name portion of the file's full path and name is returned by this property.

You can also change the contents of this property to rename the file without moving it from the folder it is currently kept in.

See also:Folder.Name