May 1995
Beginner
508 pages
16h 14m
English
FileSystemObject.GetTempName Method
oFileSysObj.GetTempNameoFileSysObj
Use: Required
Data Subtype: FileSystemObject object
Any object variable returning a FileSystemObject object.
A Variant of subtype String.
Returns a system-generated temporary file or folder name.
GetTempName doesn’t create a temporary file or folder; it simply provides a name you can use with the CreateTextFile method.
As a general rule, you shouldn’t create your own temporary
filenames. Windows provides an algorithm within the Windows API to
generate the special temporary file and folder names so that it can
recognize them later. The GetTempName method nicely wraps this
GetTempFilename API function.
Read now
Unlock full access