SOLUTION: copy/move selected shortcut targets to a destination youchoose on the fly

T

twohawks

Hi All,
I was searching all over in relation to this question. I would have
added some links to older relevant threads that I found, but there is
a 60 day limit.

Although the below tags link to a member-site (popular), this is
really not meant to come across as advertising.. I had been looking
for some time into this similar issue, and information on the net
seems not only spotty and incomplete, but the solution is very
elusive... and it shouldn't be.

What's really tough to find is way to select objects at random, say by
control-clicking any files and shortcuts in a folder, and then
selectively copy or move the files and shortcut targets (not the
shortcuts themselves) ...whenever and wherever you wish to do this,
say, via a context-menu you set up.
Most scripts require coding the paths and such ahead of time and
launching the script, or gathering a selection of paths into a batch,
etc...

....but I wanted more freedom, and I wanted it in the context menu.

***This is doable.

The following links demonstrate some alternatives using simple windows
scripting methods.
The first link discusses the technical issues (the challenges and what
you really can and cannot do) in detail, as well as providing a very
simple approach to how this can be handled. I am not posting that all
here because due to its detail its a bit lengthy (yes, I wrote it).

I post all this here in the spirit of seeding the best answers I could
find in places where seekers -like myself- may find them ...places I
arrived at before in search of answers ;^)
Cheers,
TwoHawks

An article/tutorial with an example, for those wishing to learn and
understand
http://www.experts-exchange.com/art...-shortcut-target-files-referenced-by-lnk.html

see this for folder recursion etc
vbs to work on folder contains shortcuts to copy the source to another
folder.
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_22498609.html

see this too
Batch File To Copy Pictures
http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_24556493.html

powershell possibility
http://www.vistax64.com/powershell/171506-passing-arguments-bat-powershell-script.html
 
R

RJK

twohawks said:
Hi All,
I was searching all over in relation to this question. I would have
added some links to older relevant threads that I found, but there is
a 60 day limit.

Although the below tags link to a member-site (popular), this is
really not meant to come across as advertising.. I had been looking
for some time into this similar issue, and information on the net
seems not only spotty and incomplete, but the solution is very
elusive... and it shouldn't be.

What's really tough to find is way to select objects at random, say by
control-clicking any files and shortcuts in a folder, and then
selectively copy or move the files and shortcut targets (not the
shortcuts themselves) ...whenever and wherever you wish to do this,
say, via a context-menu you set up.
Most scripts require coding the paths and such ahead of time and
launching the script, or gathering a selection of paths into a batch,
etc...

...but I wanted more freedom, and I wanted it in the context menu.

***This is doable.

The following links demonstrate some alternatives using simple windows
scripting methods.
The first link discusses the technical issues (the challenges and what
you really can and cannot do) in detail, as well as providing a very
simple approach to how this can be handled. I am not posting that all
here because due to its detail its a bit lengthy (yes, I wrote it).

I post all this here in the spirit of seeding the best answers I could
find in places where seekers -like myself- may find them ...places I
arrived at before in search of answers ;^)
Cheers,
TwoHawks

An article/tutorial with an example, for those wishing to learn and
understand
http://www.experts-exchange.com/art...-shortcut-target-files-referenced-by-lnk.html

see this for folder recursion etc
vbs to work on folder contains shortcuts to copy the source to another
folder.
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_22498609.html

see this too
Batch File To Copy Pictures
http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_24556493.html

powershell possibility
http://www.vistax64.com/powershell/171506-passing-arguments-bat-powershell-script.html


.....so what eaxactly are you trying to do ???
....( without all the gibberish if you please ! )

regards, Richard
 
M

MowGreen

RJK said:
....so what eaxactly are you trying to do ???
...( without all the gibberish if you please ! )

regards, Richard


It appears that the OP's doing a copy/move selected shortcut targets to
a location on a fly. Whether they all fit depends on the size of the
fly, I reckon. <w>


MowGreen
================
*-343-* FDNY
Never Forgotten
================

banthecheck.com
"Security updates should *never* have *non-security content* prechecked
 
G

glee

MowGreen said:
It appears that the OP's doing a copy/move selected shortcut targets
to a location on a fly. Whether they all fit depends on the size of
the fly, I reckon. <w>

....and whether the fly is in a urinal (but that's an inside joke).....
 
M

MowGreen

glee said:
...and whether the fly is in a urinal (but that's an inside joke).....


Yeah, inside the urinal. Arf, arf, nanu nanu.


MowGreen
================
*-343-* FDNY
Never Forgotten
================

banthecheck.com
"Security updates should *never* have *non-security content* prechecked
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top