Temporary files

Discussions related to database technologies, file handling, directories and storage
p_m21987
Posts: 177
Joined: Mon 02 Apr 2018, 21:51

Temporary files

Post by p_m21987 »

Hello,

If you have a program that needs to write data to temporary files, does BB4W/BBCSDL have a feature that lets you know the path to the temporary files folder? As far as I know, In linux it's usually /tmp/, but I don't know where windows would keep its temp folder.

Patrick

Edit: Thanks Richard for the answer, @tmp$ was precisely what I needed.
Last edited by p_m21987 on Mon 07 May 2018, 20:42, edited 1 time in total.
guest

Re: Temporary files

Post by guest »

Patrick M wrote: Sun 22 Apr 2018, 19:35 If you have a program that needs to write data to temporary files, does BB4W/BBCSDL have a feature that lets you know the path to the temporary files folder?
@tmp$ is probably what you want, but it's typically a 'per user' temporary folder rather than shared system-wide. It's implemented (along with @cmd$, @dir$, @lib$ and @usr$) in all editions of BB4W and BBCSDL. You'll find it documented here.

Richard.