Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Help with a VBscript to distribute files

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,63240
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Help with a VBscript to distribute files
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Help with a VBscript to distribute files - 8/7/2008 5:59:32 AM   
  chrisj

 

Posts: 1
Score: 0
Joined: 8/7/2008
Status: offline
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 or other suggestions will be greatly appreciated.
 
 
Post #: 1
 
 RE: Help with a VBscript to distribute files - 8/11/2008 1:35:44 AM   
  dm_4ever


Posts: 2669
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Have you searched?  Distributing files evenly across several folders has been discussed in the past here.

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to chrisj)
 
 
Post #: 2
 
 RE: Help with a VBscript to distribute files - 8/12/2008 1:09:11 AM   
  nilpo1

 

Posts: 21
Score: 0
Joined: 1/22/2006
Status: offline
I've already provided you with a solution to this.

http://forums.aspfree.com/windows-scripting-64/need-to-distribute-files-evenly-to-other-folders-239079.html

_____________________________

Scripting problems? Windows questions? Ask the Windows Guru!

(in reply to dm_4ever)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Help with a VBscript to distribute files Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts