# @Admin and @Admin: Cannot be variables

**URL:** https://resource.dopus.com/t/admin-and-admin-cannot-be-variables/27589
**Category:** Help & Support
**Tags:** commands
**Created:** [December 19, 2017, 4:10am UTC](https://resource.dopus.com/t/admin-and-admin-cannot-be-variables/27589 "2017-12-19T04:10:04Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Julianon](https://resource.dopus.com/user_avatar/resource.dopus.com/julianon/32/25802_2.png) [@Julianon](https://resource.dopus.com/u/Julianon)
#### Post date: [December 20, 2017, 12:58am UTC](https://resource.dopus.com/t/admin-and-admin-cannot-be-variables/27589/5 "2017-12-20T00:58:13Z")

</div>

Thanks, Leo. You gave me the clue about what I was carelessly overlooking:

> If it’s launched from the same window that is in Admin Mode, it will be launched as admin.

I had indeed been experimenting with the DOS box (amongst others) because that is very easy, as you say. But I had been elevating using a lister, then launching software through a floating toolbar --- the floating toolbar was, of course, not connected to the lister, so it didn't work.

I now find that when I launch using a button on the same lister, everything works as expected. Also, when you turn on 'Administrator mode' from a button palced on a floating toolbar, software launched by a subsequent instance of the same floating toolbar is not elevated (as one would expect).

So my original problem remains --- I was trying to use a global variable to insert the command modifier _@Admin_ as a first line, or _@Admin:_ in front of the command, an approach that worked perfectly with parameters such as NewTab in other DOpus commands ([see my earlier post](https://resource.dopus.com/t/a-key-system-to-control-the-place-where-a-new-folder-is-opened/22089)). Clearly modifiers work differently, which is what surprised me in the beginning.

As I said, no worries. I can script, or even easier, I can use a user-defined command with a conditional that insert @Admin explicitly if the global variable is non-empty.

---

_[View the full topic](https://resource.dopus.com/t/admin-and-admin-cannot-be-variables/27589)._
