PC Review


Reply
Thread Tools Rate Thread

Copying Directories and files

 
 
David C
Guest
Posts: n/a
 
      12th Mar 2008
I have an asp.net (VB) page that I am trying to copy subfolders and their
files into a new folder. I am using the asp.net code below, but it is not
working. It copies all files in each of the subdirectories but not the
folders that contain them. Can anyone tell me what I am missing? Thanks.

David

For Each foundDirectory As String In
My.Computer.FileSystem.GetDirectories(strListFolderPath,
FileIO.SearchOption.SearchAllSubDirectories, "*")
My.Computer.FileSystem.MoveDirectory(foundDirectory,
strCloseFolderPath, True)
Next


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Copying directories in XP Pro Pegasus Windows XP General 1 14th Mar 2009 01:25 PM
Copying JPEG image files to new directories makes directories unus =?Utf-8?B?U2ltb24gUC4=?= Windows XP Help 0 29th Jan 2007 02:21 AM
Copying files to different directories within Explore =?Utf-8?B?Z2V1bmRh?= Spyware Discussion 0 24th Oct 2006 11:15 AM
Links to files in other directories - problems copying files Mike Microsoft Excel Discussion 6 18th Mar 2004 10:26 AM
Copying directories? Seth Microsoft C# .NET 3 11th Mar 2004 05:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:54 AM.