Solved

Temporary filenames

Posted on 2001-07-18
5
235 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

743 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

13 Experts available now in Live!

Get 1:1 Help Now