[OTP]Changing System Environment variables from VB6


  • Hi All,

    Does anyone know of a way to change a system environment variable from within a VB6 program?

    I have tried Environ() and SetEnviromentVariable - they only set/change environment variable that are visible to the application NOT the system.

    The reason I need to change them is that their is inventory info stored as environment variables on the PC - when the PC is moved to a new location the Inventory info needs to change.

    Any help offered will be greatfully received!

    Thanks in anticipation.


    Wednesday, August 02, 2006 1:47 PM