Partager via


2.2.4.15 SMB_COM_CREATE_TEMPORARY (0x0E)

This is an original Core Protocol command. This command is obsolescent.

This command is used to create a file for temporary use by the client. The message includes the directory (see DirectoryName following) in which the client requests to create the temporary file. The server generates a file name that is unique within the supplied directory. The supplied directory MUST be relative to the supplied valid TID in the SMB Header (section 2.2.3.1). The client MUST have write permission on the directory in order to create the temporary file. If successful, the FID returned by the server MAY be used in subsequent file operation messages. The client MUST supply this FID in subsequent operations on the temporary file. The file is opened in compatibility mode with read and write permissions for the client. The server does not automatically delete the temporary file after the client closes the file. The client MUST delete the file when it is no longer needed.