I see documentation of creating shortcuts. but what if want relocate lets
say x:\dira\dirb to x:\dirb and change all the corresponding shortcuts in a
folder and subfolders of the windows taskbar myTB,
what will be the best way of going about it?


the complication comes in that shortcuts may point to files in subfolders of
dirb

Re: naive question on shortcut by Joe

Joe
Fri Nov 10 07:24:08 CST 2006

"gs" <gs@dontMail.telus> wrote in message
news:%23YHMe9IBHHA.3380@TK2MSFTNGP04.phx.gbl...
>I see documentation of creating shortcuts. but what if want relocate lets
>say x:\dira\dirb to x:\dirb and change all the corresponding shortcuts in a
>folder and subfolders of the windows taskbar myTB,
> what will be the best way of going about it?
>
>
> the complication comes in that shortcuts may point to files in subfolders
> of dirb
>
If you know where the .lnk files are held you can open and modify them using
the CreateShortcut method. See the WScropt docs for examples.
(In brief if tghe file exists already you get access to it's properties etc,
if not it is created.)

--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name