PATH manipulation via VBS or JavaScript

Sometimes it is not possible to edit the PATH variable on your Computer. – In my case the admin blocked the panel – but my user has sufficient rights to do so.
Be carefull. Do save your Environment variable somewhere in a textfile.
It is possible to damage your system.

You can call the script with the cscript scripting host.
Don’t forget to reopen a new Shell to see the result of your effort.
The current Command-Shell does not show any differece

the following script is in VBScript. But you can translate it easily to Javascript.

Leave a Comment

Your email address will not be published. Required fields are marked *

Martin Rocks