Need help copying files from shared drive to local drive 
Author Message
 Need help copying files from shared drive to local drive

I have inherited a .net project.  The code needs to copy files from a
directory on our shared drive to a users local drive.  The code is below.  I
need a "for each" statement or some statement that will copy the files from
the shared location to my local drive.  Thanks in advance.  OS

Imports System
Imports System.Data
Imports System.Data.OleDb
Imports System.Data.SqlClient
Imports Microsoft.Win32
Imports System.Configuration.ConfigurationSettings

Namespace Test

    Public Class CopyTest
        Private asCommandLineArgs As Array
        Private sRunAs As String = System.Environment.UserName

        Dim path As String = "\\mysharedlocation\folder1"
        Dim dirs As System.IO.DirectoryInfo() = New
System.IO.DirectoryInfo(path).GetDirectories()
        Dim sSetUpLocationAndFile As String = ""C:\Program
Files\mylocation\folder1"

        Public Sub CopyFiles()

        End Sub
    End Class
End Namespace



Fri, 30 Sep 2011 22:28:01 GMT  
 Need help copying files from shared drive to local drive


Quote:
>I have inherited a .net project.

This is a VB Classic group. Try posting your question here:

microsoft.public.dotnet.languages.vb



Fri, 30 Sep 2011 22:32:28 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. local drive letter <> drive share name

2. Help Obtaining Local Drive UNC or Share Name

3. What are the files needed to be on local drive

4. VB6 network drive - local drive bug

5. How to detect if drive is local or network drive

6. What is the Share-Name of a local drive

7. What is the Share-Name of a local drive

8. What is network share name of local drive

9. Retreiving The Shared Directory Name On A Local Drive

10. getting share name of a local drive

11. getting share name of a local drive

12. Show Local AND Shared (network) drives in Browseforfolder

 

 
Powered by phpBB® Forum Software