Solved

Temporary filenames

Posted on 2001-07-18
5
237 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
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 100 total points
ID: 6293447
Hi,

Look at these functions:
 GetTempFilename, GetTempFileName32

GL
 Bug
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6293473
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

919 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now