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 12:31, local time: 2024/8/31 18:31,
3.148.145.215:LOG IN
|
©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://ecomorder.com/techref/INT/21f/5a.htm"> INT 21f 5a</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.