Here is a basic example of creating a temporary folder

The Script calculates directory name and saves it into a variable. The variable than used to create the directory

temporary folder package

temporary folder script

begin
SetVariable('',GetTemporaryDirectory('c:\tmp'));
Result:=True;
end;

temporary folder file operation

Full List of "temporary" functions:

GetWindowsTemporaryDirectory

The GetWindowsTemporaryDirectory function returns windows temporary path.

GetTemporaryFile(Extension)

The GetTemporaryFile function returns a temporary file path. The file is located in windows temporary directory

GetTemporaryFileInDirectory(Directory,Extension)

The GetTemporaryFileInDirectory function returns temporary file path. The file is located in the directory

GetTemporaryDirectory(Directory)

The GetTemporaryDirectory function returns a temporary directory name in a specified directory

WIKI ARTICLEs:

We have 310 guests and no members online