Compartir a través de


GetUniqueFileName

Returns a unique file name.

function GetUniqueFileName( 
   strDirectory, 
   strFileName  
);

Parameters

  • strDirectory
    Directory to look for file name in

  • strFileName
    File name to check.

Return Value

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.

Remarks

Returns a unique file name.

See Also

Tasks

Creating a Custom Wizard

Reference

GetProjectFile

Concepts

Customizing C++ Wizards with Common JScript Functions

Designing a Wizard

Other Resources

JScript Functions for C++ Wizards