RenameItem method of the Win32_OfflineFilesCache class
Renames an item in the cache. This method logs a request with Offline Files for a path to be renamed on the next system restart.
uint32 RenameItem( [in] string OriginalPath, [in] string NewPath, [in] boolean ReplaceIfExists );
Fully qualified UNC path of the item (server, share, file or directory) to be renamed.
The new path to replace OriginalPath if the item that OriginalPath points to exists in the cache.
This parameter is reserved for future use.
This method is most often used after a directory tree has been renamed or moved on a remote server.
This method requires system administrator privilege.
A restart of the system is necessary for the rename operation to be applied to the Offline Files cache.
This method fails if the path referenced by the NewPath parameter already exists in the Offline Files cache.
Beginning with Windows 7 with Service Pack 1 (SP1) and Windows Server 2008 R2 with Service Pack 1 (SP1) you can also use the RenameItemEx method to rename an item. It does not require system administrator privilege or a system restart. However, it will fail if the item is currently in use.
|Minimum supported client
|Minimum supported server
||Windows Server 2008