1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Run as Administrator question

Discussion in 'Support' started by Speedie6, Nov 15, 2010.

  1. Speedie6

    Joined:
    Jun 28, 2008
    Messages:
    41
    Likes Received:
    0
    Couple of quick questions about running TCMD/TCC as administrator.

    1. Is there a way to make it where the title bar or something is obviously different color or different text automatically on elevated sessions of TCC and/or TCMD?

    2. If I have a TCMD session open, and I have single instance option of TCMD enabled and try to open an elevated TCMD session, does the existing TCMD session get elevated, or does the the request to elevate get ignored? Personally, I would think the single instance should be per user. If you run an elevated session of TCMD it wouldn't know or care a non-elevated session was running.
     
  2. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    Speedie6:
    ...
    | 1. Is there a way to make it where the title bar or something is
    | obviously different color or different text automatically on elevated
    | sessions of TCC and/or TCMD?

    You can use the TCC internal variable _ELEVATED in a batch file which changes the title of the TCMD or TCC window, but AFAIK nothing will do it automatically.

    | 2. If I have a TCMD session open, and I have single instance option
    | of TCMD enabled and try to open an elevated TCMD session, does the
    | existing TCMD session get elevated, or does the the request to
    | elevate get ignored? Personally, I would think the single instance
    | should be per user. If you run an elevated session of TCMD it
    | wouldn't know or care a non-elevated session was running.

    AFAIK you must specify "elevated" when the process is created, hence if you use the single instance option of TCMD you cannot open another TCMD window, no elevated TCMD window can be created while a non-elevated window remains open.
    --
    Steve
     
  3. Speedie6

    Joined:
    Jun 28, 2008
    Messages:
    41
    Likes Received:
    0
    Okay, I may play with that.

    That's what I figured is likely. But, I still think that the single instance option should apply per user so that there could be an elevated and non elevated instance while single instance is selected.
     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    Easily done in your TCSTART with the %_elevated variable.

    [/QUOTE]

    It is impossible in Windows to elevate an existing process.

    The single instance check is system wide, not per-user. The idea being that if you wanted single instance, you probably had a reason for it (like potential conflicts in your TCMD.INI, shared memory, TCSTART, etc.). Also, when you have options like "auto attach consoles" set, you're relying on random chance as to which TCMD session is going to grab them.
     

Share This Page