PDA

View Full Version : Deleting links



kkolo
04-22-2012, 07:22 PM
I need to delete some links from older installs of our product from the _CSIDL_COMMON_STARTMENU folder.

I tried to use the following...
Delete Files "%_CSIDL_COMMON_STARTMENU%\Programs\dBASE PLUS\Readme - dBASE PLUS.lnk" [Remove read-only]

I double checked the spelling and case of the file name.

But, it didn't work.

Any suggestions?

Thanks, Kathy

linder
04-23-2012, 12:02 AM
Kathy,

If it does delete the file then you are trying to delete it from the wrong location.

The following function will remove a shortcut link if it is installed in the common program Start Menu:

Delete Files "%_CSIDL_COMMON_PROGRAMS%\dBASE PLUS\Readme - dBASE PLUS.lnk"

Does this help?

Friedrich

kkolo
05-08-2012, 09:26 AM
Thanks again!

It was my mistake. I was using the wrong directory.

:-(

- Kathy

linder
05-08-2012, 09:35 AM
Kathy,

Glad it's working now :) Thanks for the update.

Friedrich