Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 252
  • Last Modified:

Temporary filenames

Does anyone know if there is an API call that would return a unique temporary filename for use in the windows temp dir?

Thanks

Jo
0
nnbbb09
Asked:
nnbbb09
1 Solution
 
kretzschmarCommented:
guessing not,

just create one and lookup,
if there already one exists before using this name

but maybe there is an api

meikl ;-)

0
 
bugrogerCommented:
Hi,

Look at these functions:
 GetTempFilename, GetTempFileName32

GL
 Bug
0
 
neostudioCommented:
Why not generating a string of 15 letters for example, name the file with this string, then after all just delete it ......

that solves it for me at least............

Bye..
0
 
nnbbb09Author Commented:

Thanks Bug.
Thanks for the URL Meikl.

Jo
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now