Help with a vbscript to distrbute files

Discussion in 'Programming' started by chrisj, Aug 7, 2008.

  1. #1
    I need some help with a vbscript to distrbute files sequentially from a Folder.
    Is any one interested in helping me with this?

    Someone suggested this: "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."

    But I'm not code-knowledable enough to understand how that solution might work. I'd like to take any files that arrive into the Upload Directory and move them into 4 separate destination folders evenly, so that one destination doesn't have most of the files.

    Any help will be greatly appreciated.
     
    chrisj, Aug 7, 2008 IP
  2. nhl4000

    nhl4000 Well-Known Member

    Messages:
    479
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Hey, I can help you out, just PM what you need to be done in more detail, thanks.
     
    nhl4000, Aug 7, 2008 IP