View Full Version : Possibly need help with vbscript
08-07-2008, 12:01 AM
I possibly need help with vbscript. I need to somehow evenly distribute files from a FolderA to four other seperate folders. can you help me?
08-07-2008, 12:04 AM
You can use the FileSystemObject to get a list of all the files in folder A.
Then use a for loop to iterate through the list. Then use do: <your for loop variable> mod 4 to determine which folder to place it in and move the file. That should evenly distribute the files.
08-07-2008, 07:46 PM
Thanks for your reply.
If I was more code-knowledgable I'd have a better understanding of your solution. It sounds like a great solution.
I don't know why I would need to "get a list". I would just like to evenly distribute the files that get uploaded into FolderA, to destination folders.
If you're interested in providing an example, or more details, I'd be interested in learning more about this solution.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.