Take Command / TCC Help v. 13.03

@UNIQUE

Hide Navigation Pane

@UNIQUE

Previous topic Next topic No directory for this topic No expanding text in this topic  

@UNIQUE

Previous topic Next topic Topic directory requires JavaScript JavaScript is required for expanding text JavaScript is required for the print function Mail us feedback on this topic!  

Comments (...)

@UNIQUE[path[,prefix]] :  Creates a zero-length file with a unique name in the specified directory, and returns its the full name and path. If no path is specified, the file will be created in the current directory. The file name will be FAT-compatible regardless of the type of drive on which the file is created. This function allows you to create a  temporary file without overwriting an existing file.

 

The path must be in quotes if it contains white space or special characters.

 

If prefix is specified, @UNIQUE will use the first three characters as the first three characters of the unique filename.

 

Because the file is created, if the Protect Redirected Output File configuration option is set, you must use the style >! redirection to avoid errors.

 

Rapid, repeated, consecutive invocations of @UNIQUE may occasionally return a non-unique file name (the same name twice, for example), due to a long-standing timing bug in Windows. If you experience this problem you may need to use DELAY, DELAY /M, or BEEP (with a frequency less than 20 Hz) to provide a short delay between invocations. You may also be able to work around the problem by performing some disk I/O activity between invocations, as this can force physical creation of the file on the disk before @UNIQUE is invoked again.

Comments (...)