A Windows Vista forum. Vista Banter

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.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » General Vista Help and Support
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

General Vista Help and Support The general Windows Vista discussion forum, for topics not covered elsewhere. (microsoft.public.windows.vista.general)

Vista UAC pops up a new Command window and my environment variable islost



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old January 13th 09, 10:02 AM posted to microsoft.public.windows.vista.general
Bo[_3_]
external usenet poster
 
Posts: 1
Default 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!
  #2 (permalink)  
Old January 13th 09, 01:21 PM posted to microsoft.public.windows.vista.general
Eric Bursley
external usenet poster
 
Posts: 12
Default 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!


  #3 (permalink)  
Old January 13th 09, 01:37 PM posted to microsoft.public.windows.vista.general
Zaphod Beeblebrox
external usenet poster
 
Posts: 269
Default 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!


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:10 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2024 Vista Banter.
The comments are property of their posters.