LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can LabVIEW "read" Microsoft Windows Environment Variables?

I agree with the answers posted here, but for completeness I wanted to link to my tool that reads and writes environment variables that I wrote a long time ago on LAVA.

 

http://lavag.org/files/file/7-windows-environment-variable-reader-writer/

Message 21 of 32
(1,524 Views)

Thanks for your help, it works fine.

0 Kudos
Message 22 of 32
(1,517 Views)

@MikeMesolella:

 

I cannot find that method call anywhere on my LV 2022 .NET pallet. Could you explain where it is please? Thanks in advance! Maybe send a code snippet.

0 Kudos
Message 23 of 32
(916 Views)

Just re-read the whole post again and you will find your answer. As I’ve answered before. Have a great day. 

Message 24 of 32
(902 Views)

Ah yes. By bad for not reading the full thread. Works fine.

Even so, ... buried much? Phew!

 

Also, I do like the call into Kernel32.dll. I've made CLN calls to Win APIs before. But there are complications there as well. Nothing's perfect, I guess.

 

Thanks again for your help! 👍

0 Kudos
Message 25 of 32
(857 Views)

How to enumerate all variables using .Net Framework in LabVIEW?

 

enum variables.png

 

George Zou
0 Kudos
Message 26 of 32
(853 Views)
0 Kudos
Message 27 of 32
(830 Views)

Can you use the "set" command in system exec?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 28 of 32
(812 Views)

@billko wrote:

Can you use the "set" command in system exec?


That's what my (terrible) code I posted earlier does.  It will have examples of parsing the command line calls.  Reminder again that the code is at least 14 years old, and probably bad.

0 Kudos
Message 29 of 32
(803 Views)

@Hooovahh wrote:

@billko wrote:

Can you use the "set" command in system exec?


That's what my (terrible) code I posted earlier does.  It will have examples of parsing the command line calls.  Reminder again that the code is at least 14 years old, and probably bad.


I have to think it hasn't changed from "this_parameter=this_value".

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 30 of 32
(793 Views)