Can the cmd shell be force to reload the enviroment

Posted on 2008-11-19
Last Modified: 2012-05-05
I have a vbs script were I set a new system enviromment variable using WshShell.Environment("SYSTEM").    It shows up under System Properties but it doesn't show up in the currect cmd window or any window that is spawned from this shell (window).    I tried start cmd from this window and it still maintains the old enviroment.   Is there a way to force it to use the new system enviroment?
Question by:milesri
    LVL 24

    Expert Comment

    can you just type cmd again from the prompt to access the new system environment?

    Author Comment

    No,  it still doesn't seem to read it.  I know its been set because I can see it under System Properties and if I launch a new cmd window start->run cmd,  it will have the variable set.  just not any exiting cmd windows

    LVL 24

    Accepted Solution

    This may be a limitation of cmd. It will only get this information from the initial launch.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration of the Data Protection Manager product. Note that this demonstration was prepared on the basis of Windows OS is 2008 R2 and DPM 2010. DATA PROTECTI…
    Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
    This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
    Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now