CreateTemp Method

 Object: SoftArtisans.SAFile
 Syntax: CreateTemp ([out] TempFilename)
 Description: This method creates a temporary file in the directory specified by the Path property and returns the filename, including the complete path.

Temporary files have the format "SAnnnn.TMP", where nnnn is a unique string.

If the Path property was not previously set, SA-FileUp uses the system-defined Temporary Path (which is returned by the WIN32 GetTempPath() routine). Typically, this is "C:\TEMP".

The path may be set through either the SAFile (file specific) Path property or the FileUp (for all files) Path property.

Example:

	<%
	set objFile = Server.CreateObject("SoftArtisans.SAFile")
	objFile.Path "C:\Temp\"
	objFile.CreateTemp NewTempFilename
	... %>

 

Previous Page Next Page