# How to copy path to clipboard?

**URL:** https://resource.dopus.com/t/how-to-copy-path-to-clipboard/4635
**Category:** Help & Support
**Created:** [September 3, 2007, 10:26am UTC](https://resource.dopus.com/t/how-to-copy-path-to-clipboard/4635 "2007-09-03T10:26:43Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [September 3, 2007, 4:53pm UTC](https://resource.dopus.com/t/how-to-copy-path-to-clipboard/4635/3 "2007-09-03T16:53:12Z")

</div>

I can't think of a good way to add the \ at the end when directories are selected, except by writing some VBScript to do the job (which seems like overkill but if you really need it it could be done).

By the way, Clipboard COPYNAMES={filepath} is wrong and only works by chance. See [HOW TO: Copy selected filenames to the clipboard](https://resource.dopus.com/t/commands-to-copy-selected-filenames-to-the-clipboard/244/1) for the correct usage.

There's also Clipboard SET which can set the clipboard to any string. Clipboard SET {filepath} is valid and does the same thing as the basic Clipboard COPYNAMES, except that the SET version won't properly handle more than one selected filename while the COPYNAMES version will.

---

_[View the full topic](https://resource.dopus.com/t/how-to-copy-path-to-clipboard/4635)._
