Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
how can i read in a QV-Script the Windows Environment Variable like %windir%
thx
Volker
In the script you can, using GetRegistryString(), e.g.
let UserEnvVar = GetRegistryString('HKEY_CURRENT_USER\Environment\','SOMEPATH');
assignes the value of the user environment variable named SOMEPATH to the QV-Script variable UserEnvVar.
Rgds,
Joachim
Thanks for the quick reply!
%windir% was just an example! I want to access to user-defined variable.
I use QV 8.5 and there is not above "environmental functions" in the Help
So you can try "system functions" or simply "DocumentPath", "QVUser", "OSUser"...
OK - so, I think there is NO chance to access to user-defined Windows - envroment variables by a QV - Skript!
What a pity!
In the script you can, using GetRegistryString(), e.g.
let UserEnvVar = GetRegistryString('HKEY_CURRENT_USER\Environment\','SOMEPATH');
assignes the value of the user environment variable named SOMEPATH to the QV-Script variable UserEnvVar.
Rgds,
Joachim
yes - that's it!!!
thx