?
Solved

Temporary filenames

Posted on 2001-07-18
5
Medium Priority
?
246 Views
Last Modified: 2010-04-06
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
Comment
Question by:nnbbb09
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6293432
guessing not,

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

but maybe there is an api

meikl ;-)

0
 
LVL 2

Accepted Solution

by:
bugroger earned 300 total points
ID: 6293447
Hi,

Look at these functions:
 GetTempFilename, GetTempFileName32

GL
 Bug
0
 
LVL 3

Expert Comment

by:neostudio
ID: 6293847
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
 
LVL 3

Author Comment

by:nnbbb09
ID: 6294111

Thanks Bug.
Thanks for the URL Meikl.

Jo
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question