# Desktop Button

**URL:** <https://resource.dopus.com/t/desktop-button/11254>\
**Category:** Help & Support\
**Created:** [June 18, 2011, 6:13pm UTC](https://resource.dopus.com/t/desktop-button/11254 "2011-06-18T18:13:17Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![krkaem](https://resource.dopus.com/letter_avatar_proxy/v4/letter/k/41988e/32.png) [@krkaem](https://resource.dopus.com/u/krkaem)\
**Post date:** [June 18, 2011, 6:13pm UTC](https://resource.dopus.com/t/desktop-button/11254/1 "2011-06-18T18:13:17Z")

</div>

Is there a way to make a "Desktop" Button ?, analogously to the Startmenu button described here :  
[Start Menu button](https://resource.dopus.com/t/start-menu-button/3540/1), last comment and code creating dropdown menu.

With "Desktop" i mean the origin of the folder tree

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [June 18, 2011, 7:48pm UTC](https://resource.dopus.com/t/desktop-button/11254/2 "2011-06-18T19:48:05Z")

</div>

There's one in the default menu attached to the parent button as well as in the Customize -\> Commands list (type Desktop into the filter to find it quickly).

---

<div class="post-metadata">

**Author:** ![krkaem](https://resource.dopus.com/letter_avatar_proxy/v4/letter/k/41988e/32.png) [@krkaem](https://resource.dopus.com/u/krkaem)\
**Post date:** [June 18, 2011, 8:05pm UTC](https://resource.dopus.com/t/desktop-button/11254/3 "2011-06-18T20:05:37Z")

</div>

I didn't mean this. I'd like a drop down menu with cascading submenus.

---

<div class="post-metadata">

**Author:** ![abr](https://resource.dopus.com/user_avatar/resource.dopus.com/abr/32/62448_2.png) [@abr](https://resource.dopus.com/u/abr)\
**Post date:** [June 18, 2011, 8:19pm UTC](https://resource.dopus.com/t/desktop-button/11254/4 "2011-06-18T20:19:20Z")

</div>

> [@krkaem](#):
>
> I didn't mean this. I'd like a drop down menu with cascading submenus.

The desktop is a virtual folder, while the code rather works on real folders.

---

<div class="post-metadata">

**Author:** ![krkaem](https://resource.dopus.com/letter_avatar_proxy/v4/letter/k/41988e/32.png) [@krkaem](https://resource.dopus.com/u/krkaem)\
**Post date:** [June 18, 2011, 8:23pm UTC](https://resource.dopus.com/t/desktop-button/11254/5 "2011-06-18T20:23:55Z")

</div>

I too thought in this way, but my hope was that there is a code variation for virtual folders.

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [June 18, 2011, 8:24pm UTC](https://resource.dopus.com/t/desktop-button/11254/6 "2011-06-18T20:24:05Z")

</div>

> [@krkaem](#):
>
> I didn't mean this. I'd like a drop down menu with cascading submenus.

Oh, try this then:

```auto
Go /desktop FOLDERCONTENT
```

---

<div class="post-metadata">

**Author:** ![krkaem](https://resource.dopus.com/letter_avatar_proxy/v4/letter/k/41988e/32.png) [@krkaem](https://resource.dopus.com/u/krkaem)\
**Post date:** [June 18, 2011, 8:29pm UTC](https://resource.dopus.com/t/desktop-button/11254/7 "2011-06-18T20:29:10Z")

</div>

the button disappears when closing the customize window with ok.

---

<div class="post-metadata">

**Author:** ![abr](https://resource.dopus.com/user_avatar/resource.dopus.com/abr/32/62448_2.png) [@abr](https://resource.dopus.com/u/abr)\
**Post date:** [June 18, 2011, 8:30pm UTC](https://resource.dopus.com/t/desktop-button/11254/8 "2011-06-18T20:30:40Z")

</div>

> [@krkaem](#):
>
> the button disappears when closing the customize window with ok.

It must be inside a menu button.

---

<div class="post-metadata">

**Author:** ![krkaem](https://resource.dopus.com/letter_avatar_proxy/v4/letter/k/41988e/32.png) [@krkaem](https://resource.dopus.com/u/krkaem)\
**Post date:** [June 18, 2011, 8:37pm UTC](https://resource.dopus.com/t/desktop-button/11254/9 "2011-06-18T20:37:53Z")

</div>

but there is no "Function" field where i can enter the command.  
And i do not know how to variate the code in shown in the link above.  
i have to change in "go /desktop FOLDERCONTEND" and how to change the other code related to the (virtual) folder?

---

<div class="post-metadata">

**Author:** ![abr](https://resource.dopus.com/user_avatar/resource.dopus.com/abr/32/62448_2.png) [@abr](https://resource.dopus.com/u/abr)\
**Post date:** [June 18, 2011, 8:42pm UTC](https://resource.dopus.com/t/desktop-button/11254/10 "2011-06-18T20:42:22Z")

</div>

[quote="krkaem"]but there is no "Function" field where i can enter the command.  
[/quote]

`<?xml version="1.0"?>
<button backcol="none" display="both" textcol="none" type="menu">
	<label>Desktop Foldercontent</label>
	<icon1>#statusbar</icon1>
	<button backcol="none" display="both" label_pos="right" textcol="none">
		<label>Desktop Foldercontent</label>
		<icon1>#newmenu</icon1>
		<function type="normal">
			<instruction>Go /desktop FOLDERCONTENT</instruction>
		</function>
	</button>
</button>
`

---

<div class="post-metadata">

**Author:** ![krkaem](https://resource.dopus.com/letter_avatar_proxy/v4/letter/k/41988e/32.png) [@krkaem](https://resource.dopus.com/u/krkaem)\
**Post date:** [June 18, 2011, 8:46pm UTC](https://resource.dopus.com/t/desktop-button/11254/11 "2011-06-18T20:46:47Z")

</div>

same effect as "goto desktop". No menu , in the lister appear the desktop elements.

---

<div class="post-metadata">

**Author:** ![abr](https://resource.dopus.com/user_avatar/resource.dopus.com/abr/32/62448_2.png) [@abr](https://resource.dopus.com/u/abr)\
**Post date:** [June 18, 2011, 8:59pm UTC](https://resource.dopus.com/t/desktop-button/11254/12 "2011-06-18T20:59:49Z")

</div>

Please check your PM box.

---

<div class="post-metadata">

**Author:** ![abr](https://resource.dopus.com/user_avatar/resource.dopus.com/abr/32/62448_2.png) [@abr](https://resource.dopus.com/u/abr)\
**Post date:** [June 18, 2011, 9:57pm UTC](https://resource.dopus.com/t/desktop-button/11254/13 "2011-06-18T21:57:34Z")

</div>

Check out, if this is what you had in mind:

`<?xml version="1.0"?>
<button backcol="none" display="both" textcol="none" type="menu_button">
	<label>drive contents</label>
	<icon1>#newbuttonmenu</icon1>
	<button backcol="none" display="both" textcol="none" type="menu">
		<label>C:</label>
		<icon1>#newmenu</icon1>
		<button backcol="none" display="both" label_pos="right" textcol="none">
			<label>Foldercontent C:</label>
			<icon1>#newmenu</icon1>
			<function type="normal">
				<instruction>Go C:\ foldercontent</instruction>
			</function>
		</button>
	</button>
	<button backcol="none" display="both" textcol="none" type="menu">
		<label>D:</label>
		<icon1>#newmenu</icon1>
		<button backcol="none" display="both" label_pos="right" textcol="none">
			<label>Foldercontent D:</label>
			<icon1>#newmenu</icon1>
			<function type="normal">
				<instruction>Go D:\ foldercontent</instruction>
			</function>
		</button>
	</button>
	<button backcol="none" display="both" textcol="none" type="menu">
		<label>E:</label>
		<icon1>#newmenu</icon1>
		<button backcol="none" display="both" label_pos="right" textcol="none">
			<label>Foldercontent E:</label>
			<icon1>#newmenu</icon1>
			<function type="normal">
				<instruction>Go E:\ foldercontent</instruction>
			</function>
		</button>
	</button>
	<button backcol="none" display="both" textcol="none" type="menu">
		<label>F:</label>
		<icon1>#newmenu</icon1>
		<button backcol="none" display="both" label_pos="right" textcol="none">
			<label>Foldercontent F:</label>
			<icon1>#newmenu</icon1>
			<function type="normal">
				<instruction>Go F:\ foldercontent</instruction>
			</function>
		</button>
	</button>
	<button backcol="none" display="both" textcol="none" type="menu">
		<label>G:</label>
		<icon1>#newmenu</icon1>
		<button backcol="none" display="both" label_pos="right" textcol="none">
			<label>Foldercontent G:</label>
			<icon1>#newmenu</icon1>
			<function type="normal">
				<instruction>Go G:\ foldercontent</instruction>
			</function>
		</button>
	</button>
</button>`

This button features drives C: to G:, but it can be extended & customized.

---

<div class="post-metadata">

**Author:** ![krkaem](https://resource.dopus.com/letter_avatar_proxy/v4/letter/k/41988e/32.png) [@krkaem](https://resource.dopus.com/u/krkaem)\
**Post date:** [June 18, 2011, 10:15pm UTC](https://resource.dopus.com/t/desktop-button/11254/14 "2011-06-18T22:15:13Z")

</div>

In principle yes, but it fills up the toolbar.  
Desktop indeed is a special folder. My hope was that analogously to folder tree and breadcrumbbar it is possible to have ONE starting point above a dropdown menu.  
Thanks for your effort. Perhaps there is a solution, and i dream of it this night 🙂

---

<div class="post-metadata">

**Author:** ![abr](https://resource.dopus.com/user_avatar/resource.dopus.com/abr/32/62448_2.png) [@abr](https://resource.dopus.com/u/abr)\
**Post date:** [June 18, 2011, 10:23pm UTC](https://resource.dopus.com/t/desktop-button/11254/15 "2011-06-18T22:23:19Z")

</div>

> [@krkaem](#):
>
> In principle yes, but it fills up the toolbar.

Strange. It takes up the place of one button here, everything else is an inside dropdown menu.  
About the one starting point, i couldn´t find no better solution.  
Go /mycomputer foldercontent indeed shows an empty menu,  
most likely, because of the virtual folders thing. But if you consider the main menu button  
as the "one point", it´s basically the same, except it has to be set manually (which then again  
can be an advantage, since you can leave out some unwanted drives).

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [June 19, 2011, 3:49am UTC](https://resource.dopus.com/t/desktop-button/11254/16 "2011-06-19T03:49:05Z")

</div>

> [@krkaem](#):
>
> the button disappears when closing the customize window with ok.

The one I posted works fine here. Create a new button from scratch, in case the old one had any leftover settings, and make sure the command is exactly as I gave it.

It should only disappear when you exit customize mode if you have no files on your desktop.

---

<div class="post-metadata">

**Author:** ![krkaem](https://resource.dopus.com/letter_avatar_proxy/v4/letter/k/41988e/32.png) [@krkaem](https://resource.dopus.com/u/krkaem)\
**Post date:** [June 19, 2011, 7:01am UTC](https://resource.dopus.com/t/desktop-button/11254/17 "2011-06-19T07:01:16Z")

</div>

@abr: my mistake : i missed to copy some lines of your code! I overlooked the scrollbar in your code window. ☹ Too late in the evening.  
It works as you described, very fine thank you.  
@Leo : In your example users\user\desktop is addressed, not the Desktop on top of the folder structure which i wanted.  
And yes, my "real" desktop is empty, just recycle bin is there.

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [June 19, 2011, 7:46am UTC](https://resource.dopus.com/t/desktop-button/11254/18 "2011-06-19T07:46:26Z")

</div>

[quote="krkaem"]@Leo : In your example users\user\desktop is addressed, not the Desktop on top of the folder structure which i wanted.  
And yes, my "real" desktop is empty, just recycle bin is there.[/quote]

I'm not sure what you're asking for then. (If your desktop is empty, why would you want a menu that shows its contents?)

Could you re-state the problem you are trying to solve?

Edit: Looking at Abr's answer again, seems you wanted My Computer in a menu, not Desktop.

---

<div class="post-metadata">

**Author:** ![krkaem](https://resource.dopus.com/letter_avatar_proxy/v4/letter/k/41988e/32.png) [@krkaem](https://resource.dopus.com/u/krkaem)\
**Post date:** [June 19, 2011, 8:02am UTC](https://resource.dopus.com/t/desktop-button/11254/19 "2011-06-19T08:02:02Z")

</div>

If i click on Desktop on top of the foldertree, i get in the lister on the right Libraries, MyComputer, Collections, FTP, Network and so on.  
What i wanted is to have a dropdown menu with cascading submenus such that i can hover thru all the the folders from top of the foldertree .  
Ie, when clicking on the "Desktop menu button", i see Libraries, MyComputer, Collections, FTP, Network and so on. Hovering over MyComputer the according submenu opens,with the drives and maybe systemfolders
