Maybe this func will be useful:
hb_vfTempFile(@<cFileName>, [<cDir>], [<cPrefix>], [<cExt>], [<nAttr>]) ➜ pHandle> | NIL
creates a temp file and stores its randomly constructed name into cFileName parameter variable (which must be passed by reference).
Returns a file handler (pointer) on created file or NIL on failure.
NOTE: the temporary file is created always on local system (i.e. without switching to FILE IO redirector), into <cDir> or into user's %TEMP% directory if no <cDir> specified.
It remains opened until it's closed either imperatively (f.e. by using hb_vfClose(<pHandle>)) or by Operating System (upon program termination).
Jimmy, Not sure if this what you are looking for but I create memo files from invoice numbers, and these are shared in a folder on server.
Also in my scheduler I create memo files from with name from time and day of appointment, shared in a folder on server.
If this is what you mean I could give sample.