Working With Temporary Files and Directories
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
begin
SetVariable('',GetTemporaryDirectory('c:\tmp'));
Result:=True;
end;
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
We have 288 guests and no members online