Subscribe to forum RSS Forum

Macros in the tag filename

New Topic Post Reply

Page: 1

Author Post
Kai Brendel
Guest
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
Administrator
Registered: Sep 2007
Posts: 134
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.

New Topic Post Reply

Page: 1