Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
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}


1 Solution

Accepted Solutions
rbecher
MVP
MVP

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

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine

View solution in original post

2 Replies
rbecher
MVP
MVP

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

Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
Not applicable
Author

Thanks Ralf that is as good as!