Quantcast
Channel: All Quality Center / ALM Practitioners Forum posts
Viewing all articles
Browse latest Browse all 14708

How to download an attachment from a Test in a Test Set in a defined location/path?

$
0
0

Even though i define the path "C:\Temp" for loading the attachment, It is not taking this location...Be default it is taking "C:\WINNT\TEMP\TD_80_\.....\Attach\TESTCYCL\"

 

How do i change this location?

 

Dim Test As TSTest

Dim attachFact As AttachmentFactory

Dim tsetList1 As List

Dim attach As Attachment

 

 

Private Sub DownloadButton_Click()

Set Test = tsetList.Item(ListBox1.ListIndex + 1)
Set attachFact = Test.Attachments
Set tsetList1 = attachFact.NewList("")
Set attach = tsetList1.Item(1)
Dim LoadPath As String
LoadPath = "C:\temp"
'Debug.Print attach.Filename
attach.Load True, LoadPath
'Debug.Print LoadPath
DownloadButton.Enabled = False
End Sub


Viewing all articles
Browse latest Browse all 14708

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>