<-- Previous || Up || Next -->

Increment File Name Simple Function
File Names Class

Public Function IncrementFileNameSimple( _
    ByVal vPathName As Variant _
    ) As Variant

Simple method for incrementing a file name. Increments the Name portion of the file, using the characters allowed for DOS files.

Examples:
    IncrementFileNameSimple("FILE.EXE")     = "FILF.EXE"
    IncrementFileNameSimple("PICTURES.TXT") = "PICTURET.TXT"
    IncrementFileNameSimple("FILE99.EXE")   = "FILE9@ .EXE"
    IncrementFileNameSimple("FILE9999.EXE") = "FILE999@ .EXE"
See also:
    IncrementFileName Function
    IncrementStringWithinCharacterSet Function
    DOSFileNameCharacters Property
vPathName: String containing the file name to be incremented. The file name can contain drive, path (directory), file name and file extension components. Function returns Null if vPathName is Null or cannot be fixed up to a String.
Warning: This function is limited to using DOS-compatible file name characters and DOS-style "8.3" file names in order to retain compatibility with DOS, Windows 3.0, and Windows 3.1.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.