Get the next file version and number the file name.
Namespace: ExpSuiteAssembly: FrameWork (in FrameWork.exe) Version: 1.0.0.0
Syntax
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".
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".