|
-
Aug 26th, 2009, 11:49 AM
#1
Thread Starter
New Member
VB2008 / Vista / DeleteFiles across LAN / takes ages
Hello everybody,
i just joined this forum, because i found it googeling a solution for my
problem with VB2008, i hope someone has pointers for me so i can stop
bangin my head against the wall:
I'm writing a little program that scans a folder ("Library") for all kinds of
documents, creates a sorted-by-topic-structure, and creates a
static-HTML-webinterface to make all these documents accessible by
topic (with title, ThumbNail, Link to the actual document).
I got all the Directory-Parsing sorted out, the generating HTML-Pages
too, but im getting serious headache on the first step of my program:
emptying out the target directory, before putting all the newly
generated html-files into it.
Currently i'm doin this with a
Kill(\\Server\ShareName\LibraryFolder\Index\*.*)
- Statement
(Forgot to mention, the library, 10 Gigs of data and growing, is
stored on another machine across my LAN)
Now: This deleting of files takes __AGES__.
Before, i have tried a
for each FileName in My.Computer.FileSystem.GetFiles(...)
My.Computer.FileSystem.DeleteFile(FileName, 2, 2)
next ' FileName
Same difference, it takes more than 20 seconds to empty out the
folder, that is (on average) 150 files to delete.
The funny thing is the creating and saving of the updated files takes
less than 3 secs altogether, just the "Kill" is slow as hell.
My network-hardware is a GigaBit-Hub (D-Link green ethernet), and
CAT-5-cables. The machines (my development-box and the machine
the library is stored on) are both dual-cores with >2G RAM, my
devbox runs on Vista SP1, the host machine XP SP3.
Does anyone else have any problems like that, or ideas what i'm
doin wrong? Any help is appreciated!
Thanx in advance,
Mike aka StoneTheIceman
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
|