Welcome to Vista Banter. You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact support. |
|
General Vista Help and Support The general Windows Vista discussion forum, for topics not covered elsewhere. (microsoft.public.windows.vista.general) |
|
LinkBack | Thread Tools | Display Modes |
|
|||
Vista UAC pops up a new Command window and my environment variable islost
Vista UAC pops up a new Command window and my environment variable is
lost. The following is my test log: ---------- test log --- C:\Set MYENVIRONMENT=1 C:\xxx.exe (Run as administrator for UAC) it will pop up a new Command window to run it and my previous envrionment variable "MYENVIRONMENT" is lost in the new Command window. -------------------------- Is there any way to get my previous envrionment variable "MYENVIRONMENT" in the new pop up Command window? Any suggestion/comment are appreciated and welcome! Thank you! |
|
|||
Vista UAC pops up a new Command window and my environment variable is lost
have you tried setting the environment variable within Windows settings?
System Properties, advanced tab, environment variables -- Eric Bursley PMP, MCSE, RHCE "Bo" wrote in message ... Vista UAC pops up a new Command window and my environment variable is lost. The following is my test log: ---------- test log --- C:\Set MYENVIRONMENT=1 C:\xxx.exe (Run as administrator for UAC) it will pop up a new Command window to run it and my previous envrionment variable "MYENVIRONMENT" is lost in the new Command window. -------------------------- Is there any way to get my previous envrionment variable "MYENVIRONMENT" in the new pop up Command window? Any suggestion/comment are appreciated and welcome! Thank you! |
|
|||
Vista UAC pops up a new Command window and my environment variable is lost
"Bo" wrote in message ... Vista UAC pops up a new Command window and my environment variable is lost. The following is my test log: ---------- test log --- C:\Set MYENVIRONMENT=1 C:\xxx.exe (Run as administrator for UAC) it will pop up a new Command window to run it and my previous envrionment variable "MYENVIRONMENT" is lost in the new Command window. -------------------------- Is there any way to get my previous envrionment variable "MYENVIRONMENT" in the new pop up Command window? Any suggestion/comment are appreciated and welcome! Thank you! Run CMD.EXE as administrator, then set the environment variable and run your exe. You could also set the environment variable globally through Windows (System properties, advanced, environment variables) but that makes it harder to set on the fly, which it appears might be what you want to do. -- Zaphod No matter where you go, there you are! |