Get the next file version and number the file name.

Namespace: ExpSuite
Assembly: FrameWork (in FrameWork.exe) Version: 1.0.0.0

Syntax

Visual Basic
Public Shared Sub GetNextFileVersion ( _
	ByRef szFile As String, _
	szExt As String _
)

Parameters

szFile
Type: System..::..String%
File name to search, will be updated to the next available version.
szExt
Type: System..::..String
Extension of the file.

Remarks

GetNextFileVersion seeks for all files with the file name szFile and returns the file name labeled with next available version.
E.g. Given szName = "test" and szExt=".txt", if files "test.txt" and "test (2).txt" exist the new szName will be "test (2).txt".

See Also