Function 5Ah Create Temporary File (DOS 3.x)
Creates a file with a unique name, in the current or specified
directory on the default or specified disk drive, and returns a
handle that can be used by the program for subsequent access to
the file. The name generated for the file is also returned in a
buffer specified by the program.
entry AH 5Ah
CX attribute
00h normal
01h read only
02h hidden
04h system
DS:DX segment:offset of ASCIIZ path
return AX handle
DS:DX segment:offset of complete ASCIIZ path and file name
CF set if error
AX error code
note 1) The ASCIIZ path supplied to this function should be followed by at
least 13 additional bytes of buffer space. MS-DOS adds a backslash (\)
to the supplied path, if necessary, then appends a null-terminated
filename that is a function of te current time.
2) Files created with this function are not automatically deleted when the
caling program terminates.
3) The funciton fails if:
a) any element of the pathname does not exist.
b) The file is being created in the root directory and the root
directory is full.
4) If the program is running on a network, the file is created and opened
for read/write access in compatibility sharing mode.
5) See also Int\21f\3C and Int\21f\5B which provide additional
facilities for creating files.
file: /Techref/int/21f/5a.htm, 1KB, , updated: 1999/4/26 11:31, local time: 2024/11/9 07:54,
18.188.212.54:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://linistepper.com/Techref/int/21f/5a.htm"> int 21f 5a</A> |
Did you find what you needed? |