Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. Script for changing environnement variables on Windows

Script for changing environnement variables on Windows

Scheduled Pinned Locked Moved System Admin
toolstutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jerome Conus
    wrote on last edited by
    #1

    Hi ! I need to write a script to change the environnement variables (user and system variables), but I have no idea how to do that. I tried to find something on Google related to VBscript, but didn't find anything. Could anyone give me some hints (I only know VBscript and batch). Thanks ! Jerome

    T 1 Reply Last reply
    0
    • J Jerome Conus

      Hi ! I need to write a script to change the environnement variables (user and system variables), but I have no idea how to do that. I tried to find something on Google related to VBscript, but didn't find anything. Could anyone give me some hints (I only know VBscript and batch). Thanks ! Jerome

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      use the dos command set

      _Displays, sets, or removes cmd.exe environment variables.

      SET [variable=[string]]

      variable Specifies the environment-variable name.
      string Specifies a series of characters to assign to the variable.

      Type SET without parameters to display the current environment variables._

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups