Export (0) Print
Expand All

GetUniqueFileName

Returns a unique file name.

function GetUniqueFileName( 
   strDirectory, 
   strFileName  
);

strDirectory

Directory to look for file name in

strFileName

File name to check.

The file name indicated in strFileName if unique; otherwise this function returns strFileName, appended with a number from 1 to 9999999, to make it unique. If strFileName is not provided, this function returns a unique file name by using GetTempName Method.

Returns a unique file name.

Show:
© 2015 Microsoft