it only deletes the shortcut if the servername and sharename are in the 'shortcut to'

Driveprop() is a UDF described in the UDF forum, and it's purpose is to return and array of values of the types described in the $DrivePara array

The Deldrive() function only will operate if it is passed a drive letter that it a network drive type (not a CD drive letter) it will only function if you give it a network drive to delete.

beyond that, just read the code line by line... it is just little steps
_________________________
How to ask questions the smart way <-----------> Before you ask