I have a Wise script that will look for and delete some shortcut files (.LNK).

I set a VAR that points to C:\documents and settings
I then search this location for any/all files that are called FileMaker*.lnk
If found delete them

This works and it will find the .LNK files on any/all users DESKTOP and delete it. But, it will "Not" find the .LNK file that is located here:

C:\Documents and Settings\%username%\Application Data\Microsoft\Internet Explorer\Quick Launch


I even have my script write each file it finds to a .TXT file and it this .TXT file will list all of the .LNK files it finds Except the file(s) located in this location.

I know the Quick Launch is a Hidden location but how do I make Wise Script see it and remove the files?

Thank you.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
try to variable-ize your path more.
Try using AppData or %userprofile% instead of c:\documents and settings\%username%
Answered 02/14/2008 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
Here is the issue. The .LNK file I am trying to delete is in this path
C:\Documents and Settings\%username%\Application Data\Microsoft\Internet Explorer\Quick Launch

And the same .LNK file will be there for any/all users of the machine. And since I don't know how many users will be on any given machine I can't un-hide and then re-hide the folder(s). I suppose I could with some WinBatch code but I was hoping Wise could do it for me. Also, this will get pushed out to workstations using a distribution tool (Not SMS) and this tool runs in the local System Account so when it runs it will not delete anything for the current logged on user.

Any hints would be great.
Answered 02/15/2008 by: mhsl808
Fifth Degree Brown Belt

Please log in to comment
0
Maybe it would be easier to handle this using Active Setup or an entry in the log-in script...
Answered 02/18/2008 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity