11-11-2014 07:29 AM
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/
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
11-11-2014 08:51 AM
Thanks for your help, it works fine.
02-14-2023 02:58 PM
@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.
02-14-2023 03:43 PM
Just re-read the whole post again and you will find your answer. As I’ve answered before. Have a great day.
02-15-2023 10:22 AM
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! 👍
02-15-2023 10:52 AM
How to enumerate all variables using .Net Framework in LabVIEW?
02-15-2023 05:15 PM
Figured out:
02-16-2023 09:36 AM
Can you use the "set" command in system exec?
02-16-2023 10:12 AM - edited 02-16-2023 10:13 AM
@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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-16-2023 10:37 AM
@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".