# Making a favorite directory only makes the parent directory the favorite

**URL:** https://resource.dopus.com/t/making-a-favorite-directory-only-makes-the-parent-directory-the-favorite/45319
**Category:** Help & Support
**Created:** [August 7, 2023, 5:00pm UTC](https://resource.dopus.com/t/making-a-favorite-directory-only-makes-the-parent-directory-the-favorite/45319 "2023-08-07T17:00:54Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Bridger1](https://resource.dopus.com/letter_avatar_proxy/v4/letter/b/e47774/32.png) [@Bridger1](https://resource.dopus.com/u/Bridger1)
#### Post date: [August 7, 2023, 5:00pm UTC](https://resource.dopus.com/t/making-a-favorite-directory-only-makes-the-parent-directory-the-favorite/45319/1 "2023-08-07T17:00:54Z")

</div>

Hi ALL  
i'm testing the DO12 before buying it, loved it for teh first couple of hours, no i have run into a weird porblem, when I try to make a folder favorite, it will only make the folders parent favorite. This just happended, the first time i triedd it it worked fine, but now in whatever directory i try to favorite a folder, it wants to add the parent directory as the favorite\>

 ![unable to favorite a file](https://resource.dopus.com/uploads/default/original/3X/4/f/4f0d10a04d16e7c7439e41bb43496befbc58c174.jpeg)

---

<div class="post-metadata">

### Author: ![Itisi](https://resource.dopus.com/user_avatar/resource.dopus.com/itisi/32/62469_2.png) [@Itisi](https://resource.dopus.com/u/Itisi)
#### Post date: [August 7, 2023, 5:07pm UTC](https://resource.dopus.com/t/making-a-favorite-directory-only-makes-the-parent-directory-the-favorite/45319/2 "2023-08-07T17:07:45Z")

</div>

What's wrong with actually ENTERING the folder ("B2\_OLD\_Documents") so it becomes the "parent folder"?

Yep, and of course: Welcome to our forum!

---

<div class="post-metadata">

### Author: ![Bridger1](https://resource.dopus.com/letter_avatar_proxy/v4/letter/b/e47774/32.png) [@Bridger1](https://resource.dopus.com/u/Bridger1)
#### Post date: [August 7, 2023, 5:16pm UTC](https://resource.dopus.com/t/making-a-favorite-directory-only-makes-the-parent-directory-the-favorite/45319/3 "2023-08-07T17:16:41Z")

</div>

Thank you for the welcome.  
the folder path line in that window is not changeable, only the name line is, thus i can call it anything i want, but it will still point to Documents and not to the C:\Users\vster\OneDrive\Documents\_B2\_OLD\_Documents  
it used to just show that path, then it stopped, my question is how to get that ability back, do i need to install and uninstall the app, is this a harbinger of things to come? i mean is this app known for weird bugs that pop up out of the blue. I am test driving it and would love to buy it, but if after a lot of customizetion I need to reinstall it to get rid of some weir bugs, thta is time I would rather put to better ues.  
Thank you for the prompt reply , i really appreciate it\>

---

<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: [August 7, 2023, 7:11pm UTC](https://resource.dopus.com/t/making-a-favorite-directory-only-makes-the-parent-directory-the-favorite/45319/4 "2023-08-07T19:11:49Z")

</div>

The default Add To Favorites command adds the _current folder_ to the Favorites. It doesn't look at what's selected under the current folder at all.

Same as the Favorite/Bookmark button in a web browser adds the page you're currently on, not anything it links to.

To add the _selected_ folder instead, edit the command and change it to this:

```plaintext
@dirsonly
@firstfileonly
Favorites ADDDIALOG PATH {filepath$} NAME {filepath$|noterm}

```

---

<div class="post-metadata">

### Author: ![Bridger1](https://resource.dopus.com/letter_avatar_proxy/v4/letter/b/e47774/32.png) [@Bridger1](https://resource.dopus.com/u/Bridger1)
#### Post date: [August 7, 2023, 7:37pm UTC](https://resource.dopus.com/t/making-a-favorite-directory-only-makes-the-parent-directory-the-favorite/45319/5 "2023-08-07T19:37:29Z")

</div>

wow, thank you, So i need to be inside the directory i want to add to favorites to add it, not in the parent directory highlighting the one i want. Great, that solves that problem, back to loving the app.  
Cheers

---

<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: [August 7, 2023, 7:41pm UTC](https://resource.dopus.com/t/making-a-favorite-directory-only-makes-the-parent-directory-the-favorite/45319/6 "2023-08-07T19:41:00Z")

</div>

It's up to you; you can do either. But that's how it works by default.

---

<div class="post-metadata">

### Author: ![Bridger1](https://resource.dopus.com/letter_avatar_proxy/v4/letter/b/e47774/32.png) [@Bridger1](https://resource.dopus.com/u/Bridger1)
#### Post date: [August 7, 2023, 7:45pm UTC](https://resource.dopus.com/t/making-a-favorite-directory-only-makes-the-parent-directory-the-favorite/45319/7 "2023-08-07T19:45:42Z")

</div>

sorry, if i wanted to make it so that the highlighted directory is added to favourites, where do I add the code snippet you mentioned

```auto
@dirsonly
@firstfileonly
Favorites ADDDIALOG PATH {filepath$} NAME {filepath$|noterm}

```

---

<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: [August 7, 2023, 7:47pm UTC](https://resource.dopus.com/t/making-a-favorite-directory-only-makes-the-parent-directory-the-favorite/45319/8 "2023-08-07T19:47:43Z")

</div>

You can either replace the existing command, or add a new one. Details are near the top of here:

> [@How to use buttons and scripts from this forum](https://resource.dopus.com/t/how-to-use-buttons-and-scripts-from-this-forum/3546/1):
>
> This post explains how to add buttons to toolbars and menus, and also applies to raw commands for things like standalone hotkeys. For how to use Script Add-Ins, please scroll down to the post below this one. See Also: The manual has more detail in…

---

<div class="post-metadata">

### Author: ![Bridger1](https://resource.dopus.com/letter_avatar_proxy/v4/letter/b/e47774/32.png) [@Bridger1](https://resource.dopus.com/u/Bridger1)
#### Post date: [August 7, 2023, 7:51pm UTC](https://resource.dopus.com/t/making-a-favorite-directory-only-makes-the-parent-directory-the-favorite/45319/9 "2023-08-07T19:51:00Z")

</div>

great, thank you
