Delete everything in the folder before creating and setting the new signature.

The script below is part of our (to be implemented) logon script.
it deletes all files and folder from the signature folder if the signature folder exists. If it does not exist it creates the folder and next time the delete part will kick in. The script below requires the DirPlus() UDF. You should check if the signature folder path fits your setup.

 Code:
$signaturefolder = $appdata + "\Microsoft\Signatures\"
$folderlist = dirplus($signaturefolder, "/ad")

If Exist ($signaturefolder)
Del $signaturefolder + "*.*"
For Each $folder in $folderlist
	RD $folder /s
Next
Else
	MD $signaturefolder
EndIf
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.