We have a very strange requirement. Is it possible to attach a file (stored in the shared drive) to a defect thru workflow? Any event is fine, either opening a new defect or changing a field, workflow must be triggered which can attach a file to the defect.

I tried this but did not work:

Dim objFSO
Dim objFileGet
Dim strPath
strPath = "D:\Test\test.txt"
Set objFSO = CreateObject("Scripting.FileSystemObject")
' Get the file from its destination
objFSO.GetFile strpath
Msgbox "Attached"

Thanks for the help.