Function Reference


_WinAPI_PathYetAnotherMakeUniqueName

Creates a unique filename based on an existing filename

#include <WinAPIShPath.au3>
_WinAPI_PathYetAnotherMakeUniqueName ( $sFilePath )

Parameters

$sFilePath The file name that the unique name will be based on.

Return Value

Success: the fully qualified path of the unique file name.
Failure: Empty string.

See Also

Search PathYetAnotherMakeUniqueName in MSDN Library.

Example

#include <WinAPIShPath.au3>

DirRemove(@TempDir & '\Temp', 1)
DirCreate(@TempDir & '\Temp')
For $i = 1 To 4
    FileClose(FileOpen(_WinAPI_PathYetAnotherMakeUniqueName(@TempDir & '\Temp\My File.txt'), 2))
Next
ShellExecute(@TempDir & '\Temp')