How to create a sub folder? (1 Viewer)

essaytee

Need a good one-liner.
Local time
Today, 14:47
Joined
Oct 20, 2008
Messages
512
By network drive do you mean a shared folder or shared drive from another PC and server?
Or do you mean a NAS?

A shared drive on another PC and server. I don't even know where the server physically resides albeit, not in our building. I'm not sure if this is relevant but for all network access, I use UNC and not drive mapping.
 

deletedT

Guest
Local time
Today, 05:47
Joined
Feb 2, 2019
Messages
1,218
I tested Colin's method too.
But I couldn't see any improvement. It's almost exactly the same way that I had done it, except it's using mkDir() instead of FSO.CreateFolder.

I decided to use Colin's way for a week or two to see the changes.

thanks for all who participate and shared their knowledge here.
 

isladogs

MVP / VIP
Local time
Today, 05:47
Joined
Jan 14, 2017
Messages
18,218
Do you mean its no faster than your original method?
If so, its definitely just the looping through folders that's causing the delay.

What I don't understand is why an NAS drive would be slower than using a portable hard drive or USB stick.

Anyway if further testing does indicate no improvement, perhaps go back to the code in post 14, add a sleep value that appears sufficient e.g. 1000 but add a further small delay or a loop as needed when it 'fails' to detect the folder exists
 

Users who are viewing this thread

Top Bottom