Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Copying Folder contents


Message #1 by kanderso@n... on Wed, 17 Jan 2001 22:55:19 -0000
> 
> I am trying to copy the contents of a folder on CD-ROM to a directory
> chosen by the user of my app.  I have looked through MSDN 
> only to find the
> help suggests using Folder objects and Folder Items with a 
> Copy method. 
> Is this the only way to do it or no?  Also, if someone could provide a
> simple example I would appreciate it.  Thanks.


	Add Microsoft Scripting Runtime to the project references and then
use the FileSystemObject as below
	There is soome stuff in msdn on this object

    Dim fso As FileSystemObject
        Set fso = CreateObject("Scripting.FileSystemObject")
        fso.CopyFolder "c:\", "d:\"


cheers
k

  Return to Index