[Help] Copy the specific folder to clipboard ?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
nav
Posts: 20
Joined: 14 Mar 2013 21:44

[Help] Copy the specific folder to clipboard ?

Post by nav »

Hi
May i ask for a script that copy the specific folder to clipboard ?(path name as variable ,but copy the folder not the path name)
Thanks

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: [Help] Copy the specific folder to clipboard ?

Post by bdeshi »

Code: Select all

 $item = "Path\to\specific\folder"; //multiple items can be copied at once too. list them here, separated by |
 copy $item;
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

nav
Posts: 20
Joined: 14 Mar 2013 21:44

Re: [Help] Copy the specific folder to clipboard ?

Post by nav »

SammaySarkar wrote:

Code: Select all

 $path = "Path\to\specific\folder"; //multiple items can be copied at once too. list them here, separated by |
 copy $item;

Thanks for the help :)

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: [Help] Copy the specific folder to clipboard ?

Post by highend »

Ofc both variables must have the same name :)

So use $item instead of $path in the first line.
One of my scripts helped you out? Please donate via Paypal

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: [Help] Copy the specific folder to clipboard ?

Post by bdeshi »

:blackstorm: terribly oops-ed! :oops:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

nav
Posts: 20
Joined: 14 Mar 2013 21:44

Re: [Help] Copy the specific folder to clipboard ?

Post by nav »

nvm :D i use this :
copy "C:\Users\UserXP\Documents\CAPCOM\RESIDENT EVIL 5"

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: [Help] Copy the specific folder to clipboard ?

Post by highend »

Öh. Ctrl + p is probably faster than typing that out^^
One of my scripts helped you out? Please donate via Paypal

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: [Help] Copy the specific folder to clipboard ?

Post by bdeshi »

ctrl+p just copies the name, not the folder itself.
nav wrote:May i ask for a script that copy the specific folder to clipboard ?(path name as variable ,but copy the folder not the path name)
[em. mine]
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: [Help] Copy the specific folder to clipboard ?

Post by highend »

for the folder name only:

CTRL + SHIFT + ALT + p

The path has a trailing backslash (if that matters).
One of my scripts helped you out? Please donate via Paypal

Stef123

Re: [Help] Copy the specific folder to clipboard ?

Post by Stef123 »

Or in cases when a mouse happens to be around, Ctrl-right-click the items.

RalphM
Posts: 1935
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: [Help] Copy the specific folder to clipboard ?

Post by RalphM »

All of the later posters should read the OP's request again: "Copy the FOLDER to clipboard (not the path of it)"

And shouldn't this work as well for the currently selected item?

copy <curitem>
Ralph :)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: [Help] Copy the specific folder to clipboard ?

Post by highend »

You're right, Ralph.

But:
And shouldn't this work as well for the currently selected item?
If it isn't specific any more, why not just use Ctrl + c (if it's about a selected item)?
One of my scripts helped you out? Please donate via Paypal

RalphM
Posts: 1935
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: [Help] Copy the specific folder to clipboard ?

Post by RalphM »

True as well, so let the OP decide which tip was the most useful...
Ralph :)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: [Help] Copy the specific folder to clipboard ?

Post by bdeshi »

asked for a scriptable way.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

RalphM
Posts: 1935
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: [Help] Copy the specific folder to clipboard ?

Post by RalphM »

Which might have been due to the lack of knowing any easier ways.
Anyway I still believe it's the OP's choice now!
Ralph :)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

Post Reply