Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

Load from Windows' environment variables path?

Did some Googling but couldn't find this answer .. does anyone know if data sources can be referenced using Windows environment variables to define the path?  Eg  %HOMEPATH%  = \Documents and Settings\{username}


Tags (2)
1 Solution

Accepted Solutions
MVP
MVP

Load from Windows' environment variables path?

Hi,

I think it is not possible to use environment variables directly in the LOAD statement. But you can read a path from the registry:

let vPath=GetRegistryString('HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders','Personal');

LOAD *

FROM $(vPath)\test.qvd (qvd);

- Ralf

2 Replies
MVP
MVP

Load from Windows' environment variables path?

Hi,

I think it is not possible to use environment variables directly in the LOAD statement. But you can read a path from the registry:

let vPath=GetRegistryString('HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders','Personal');

LOAD *

FROM $(vPath)\test.qvd (qvd);

- Ralf

Not applicable

Load from Windows' environment variables path?

Thanks Ralf that is as good as!

Community Browser