Storages & Files Rename
Rename method

Renames sub-storage or stream.

Syntax:

object.Rename( oldName, newName)

Parameters:

oldName - A name of an existing item in the storage (sub-storage or a stream).

newName - The new name of the item

Examples:

Set sf = Server.CreateObject("newObjects.utilctls.SFMain")
Set dir = sf.OpenDirectory("C:\adirectory")
dir.Rename("myfile.txt",myrenamedfile.txt")

Remarks:

This method can be used to rename only items which are direct descendants of the storage.

Note that the item cannot be renamed while it is opened. 

Applies to: SFStorage object

newObjects Copyright 2001-2006 newObjects [ ]