1

Topic: Macros in the tag filename

Hi,
per default SI writes to the file, which name is given in a .sic file, in the current active directory. It is also possible to enter a full path.

What do you think about a macro to use a special folder, for example filename="$app_home$\mylog.sil" and additional the folders which can be listed by the SHGetSpecialFolderLocation function?

Regards from Unna
   Kai Brendel

2

Re: Macros in the tag filename

That's indeed very interesting, Kai. Thanks a lot for the idea. I just added it to our feature request list. I _think_ that you can already specify and use environment variables in the connections string. It should look like this:

file(filename="%temp%\log.sil")

I haven't tested this myself, but if I recall correctly, the CreateFile Windows function (which is used internally when opening a file) allows using environment variables.