quote:
So aside from using WSH
does not say that you CANNOT use WSH. It rather implies that you are looking for alternative ways, e.g. using WMI, as you then go on with a WMI code fragment.
Secondly, there is not reason to get *** off as people try to help you. However, you might want to consider to first search the BBS for solutions to your questions. Then you might have discovered the referenced UDF that uses WSH to manipulate .LNK files and you could have said, "yeah, found that UDF, but I'd rather use WMI for this".
Also, WMI requires you to be very dilligent with regards to querying it. So, I have no idea whether you do proper error checking or use proper permissions to execute the query.
Oh, and I just used Google to look up some scripts doing what you're asking for by using just two keywords. The code used is very straight-forward. I'm pretty sure you know how to use a search engine and I'm also sure you are aware that the Microsoft website has extensive WMI documentation.
Oh, and we also prefer to not have such long lines inside quote tags as they make such threads hard to read.
[ 08. July 2003, 22:33: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.