Reference/GetTempFileName

From NSIS Wiki
Revision as of 10:53, 27 November 2011 by Jan (talk | contribs) (Created page with "=GetTempFileName= user_var(output) base_dir Assign to the user variable $x, the name of a temporary file. The file will have been created, so you can then overwrite it with wh...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

GetTempFileName

user_var(output) base_dir

Assign to the user variable $x, the name of a temporary file. The file will have been created, so you can then overwrite it with what you please. The name of the temporary file is guaranteed to be unique. If to want the temporary file to be created in another directory than the Windows temp directory, specify a base_dir. Delete the file when done with it.

GetTempFileName $0
File /oname=$0 something.dat
# do something with something.dat
Delete $0