Page 1 of 1
[Help] Copy the specific folder to clipboard ?
Posted: 29 Mar 2015 00:08
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
Re: [Help] Copy the specific folder to clipboard ?
Posted: 29 Mar 2015 06:26
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;
Re: [Help] Copy the specific folder to clipboard ?
Posted: 29 Mar 2015 07:39
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

Re: [Help] Copy the specific folder to clipboard ?
Posted: 29 Mar 2015 07:55
by highend
Ofc both variables must have the same name
So use $item instead of $path in the first line.
Re: [Help] Copy the specific folder to clipboard ?
Posted: 29 Mar 2015 08:36
by bdeshi

terribly oops-ed!

Re: [Help] Copy the specific folder to clipboard ?
Posted: 29 Mar 2015 09:11
by nav
nvm

i use this :
copy "C:\Users\UserXP\Documents\CAPCOM\RESIDENT EVIL 5"
Re: [Help] Copy the specific folder to clipboard ?
Posted: 29 Mar 2015 09:14
by highend
Öh. Ctrl + p is probably faster than typing that out^^
Re: [Help] Copy the specific folder to clipboard ?
Posted: 29 Mar 2015 09:30
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]
Re: [Help] Copy the specific folder to clipboard ?
Posted: 29 Mar 2015 09:33
by highend
for the folder name only:
CTRL + SHIFT + ALT + p
The path has a trailing backslash (if that matters).
Re: [Help] Copy the specific folder to clipboard ?
Posted: 29 Mar 2015 09:36
by Stef123
Or in cases when a mouse happens to be around, Ctrl-right-click the items.
Re: [Help] Copy the specific folder to clipboard ?
Posted: 31 Mar 2015 01:10
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>
Re: [Help] Copy the specific folder to clipboard ?
Posted: 31 Mar 2015 07:32
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)?
Re: [Help] Copy the specific folder to clipboard ?
Posted: 31 Mar 2015 16:32
by RalphM
True as well, so let the OP decide which tip was the most useful...
Re: [Help] Copy the specific folder to clipboard ?
Posted: 31 Mar 2015 18:26
by bdeshi
asked for a scriptable way.
Re: [Help] Copy the specific folder to clipboard ?
Posted: 01 Apr 2015 03:49
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!