public void RenameFile( string oldName, string newName ) { FileInfo fi = new FileInfo( oldName ); fi.MoveTo( newName ); }