CFile::Rename

Call this member function to rename the specified file. Directories cannot be renamed. This is equivalent to the REN command.

Syntax

static void PASCAL Rename( LPCTSTR lpszOldName, LPCTSTR lpszNewName );
throw( CFileException );

At a Glance

Header File Afx.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CFile Overview, CFile Member Functions, File Service Classes