DevForce Help Reference
RenameFileWithCurrentTimestamp Method


Renames a file by adding the current ts to its name For example: foo.txt becomes foo.bak.20021102-102034.txt
Syntax
'Declaration
 
Public Shared Function RenameFileWithCurrentTimestamp( _
   ByVal pFileName As String, _
   ByVal pThrowOnNotFound As Boolean _
) As String
'Usage
 
Dim pFileName As String
Dim pThrowOnNotFound As Boolean
Dim value As String
 
value = FileFns.RenameFileWithCurrentTimestamp(pFileName, pThrowOnNotFound)
public static string RenameFileWithCurrentTimestamp( 
   string pFileName,
   bool pThrowOnNotFound
)

Parameters

pFileName
pThrowOnNotFound
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FileFns Class
FileFns Members

Send Feedback