Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP to pass username and password to save file to external drive

Status
Not open for further replies.

IanWaterman

Programmer
Jun 26, 2002
3,511
GB
I have created the following code form BO samples and it works fine, for the C drive on my CE server. However, I want to save file on an external drive, but will need to add the username and password, as CE does on the Destination tab. How can I modify this to do that.

'Define destination variables
Dim destination
Dim diskoptions
Dim files

'Create destination object
Set destination = SchInfo.Destination

'Set the destination for the report
destination.SetFromPlugin(report2)

'Create the diskoptions object
Set diskoptions = report2.PluginInterface("").ScheduleOptions

'Create the destination files object
Set files = diskoptions.DestinationFiles

'Set the destination output for the schedule
files.Add("c:\FAD_" & p_facil_id &".txt")

Where p_facil_id is my user parameter to create a unique file name.

Thank you

Ian

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top