Solved

Temporary filenames

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

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…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

810 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