Accessing a remote network drive
Posted on 2006-04-06
I have a vb6 appl. that will run at different sites. I will be using a central server located at one of the sites. I will have crystal reports and other files at this site that I will need to access or copy from any of the sites.
I am using the crystal viewer and would like to open reports using the following:
Private Const str As String = "\\IP ADDR\share\folder\"
Set app = New CRAXDRT.Application
Set rpt = app.OpenReport(str & "Report1.rpt", 1)
I need to include the user login info with the IP addr and I don't want to map the drive with a letter. What is the most efficent way to do this in my code?
Also, what's the best way to copy files over to the local machine?