IdeaBlade DevForce 2010 Help Reference
RenameFileWithCurrentTimestamp Method
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core Namespace > FileFns Class : RenameFileWithCurrentTimestamp Method



pFileName
pThrowOnNotFound
Renames a file by adding the current ts to its name For example: foo.txt becomes foo.bak.20021102-102034.txt

Syntax

Visual Basic (Declaration) 
Public Shared Function RenameFileWithCurrentTimestamp( _
   ByVal pFileName As String, _
   ByVal pThrowOnNotFound As Boolean _
) As String
Visual Basic (Usage)Copy Code
Dim pFileName As String
Dim pThrowOnNotFound As Boolean
Dim value As String
 
value = FileFns.RenameFileWithCurrentTimestamp(pFileName, pThrowOnNotFound)
C# 
public static string RenameFileWithCurrentTimestamp( 
   string pFileName,
   bool pThrowOnNotFound
)
C++/CLI 
public:
static String^ RenameFileWithCurrentTimestamp( 
   String^ pFileName,
   bool pThrowOnNotFound
) 

Parameters

pFileName
pThrowOnNotFound

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.