HI,
I want to develop a litle program to create a system environment variable an give it a value.
In vbscript I used the following code:
Set WshShell = Wscript.CreateObject("Wscript.Shell"
Set WshEnv = WshShell.Environment("SYSTEM"
WshEnv("EXAMPLE"
= "Test123"
and it works fine.
But now I want to use this functionality in a compiled application in VB and I didn't find a method to do so.
The vbscript code does not run.
Does anybody know how to create environment variables in VB?
Regards
kottan
I want to develop a litle program to create a system environment variable an give it a value.
In vbscript I used the following code:
Set WshShell = Wscript.CreateObject("Wscript.Shell"
Set WshEnv = WshShell.Environment("SYSTEM"
WshEnv("EXAMPLE"
and it works fine.
But now I want to use this functionality in a compiled application in VB and I didn't find a method to do so.
The vbscript code does not run.
Does anybody know how to create environment variables in VB?
Regards
kottan