|
-
Jun 11th, 2004, 12:26 PM
#1
Thread Starter
Frenzied Member
How to FAST multiple file copy (200+ files)
Esteemed Forum Participants and Lurkers:
I searched and found a reference to "Multiple File Copy":
--------------------------------------------------------------------------------
Originally posted by sameer spitfire
isn't there any option rather than looping around the files??
just an alternative
regards
--------------------------------------------------------------------------------
Reply from Pirate:
And what's wrong with loop structures ? There might be other alternatives but can't think of any now .
--------------------------------------------------------------------------------
File-by-file loop to copy is HORRIBLY slow! I have one folder of 166 files to copy. Is there any other FAST way to do it? I even thought about writing a batch file to do a wild card copy, and then calling it from VB.
Thanks for any comments, suggestions, or assistance.
Blessings in abundance,
All the Best,
& ENJOY!
Art . . . . Carlisle, PA . . USA
-
Jun 11th, 2004, 01:32 PM
#2
Frenzied Member
I believe the FileSystemObject(FSO) has a Copy folder function that might be useful to you.
Sean
Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.
-
Jun 11th, 2004, 08:58 PM
#3
Best I can Think of this
VB Code:
Dim di as New DirectoryInfo("dir")
Dim fi() as FileInfo = di.GetFiles("Pattern")
For Each f as FileInfo in fi
'Copy the file ;)
Next
If the user is using a slow computer it will be slow....
Tips:
- Google is your friend! Search before posting!
- Name your thread appropriately... "I Need Help" doesn't cut it!
- Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
- Allways Include the Name and Line of the Exception (if one is occuring!)
- If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)
If you think I was helpful, rate my post  IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous
-
Jun 11th, 2004, 10:27 PM
#4
Sleep mode
Originally posted by Webtest
Esteemed Forum Participants and Lurkers:
I searched and found a reference to "Multiple File Copy":
--------------------------------------------------------------------------------
Originally posted by sameer spitfire
isn't there any option rather than looping around the files??
just an alternative
regards
--------------------------------------------------------------------------------
Reply from Pirate:
And what's wrong with loop structures ? There might be other alternatives but can't think of any now .
--------------------------------------------------------------------------------
File-by-file loop to copy is HORRIBLY slow! I have one folder of 166 files to copy. Is there any other FAST way to do it? I even thought about writing a batch file to do a wild card copy, and then calling it from VB.
Thanks for any comments, suggestions, or assistance.
Foreach loop is faster than any other loop , as MS says . How can you do it without use any kind of loop ??????
API copy methods could be a little faster than the managed code ,I imagine .
-
Jun 12th, 2004, 08:49 AM
#5
yay gay
But you want to copy files or to move them? Copying files depends on your system - not in .net speed.
Moving takes only like 1 sec for all files.
\m/  \m/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|