Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Loop through folders...

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Loop through folders...
  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 >>
 Loop through folders... - 5/13/2008 1:08:07 AM   
  bla4free

 

Posts: 6
Score: 0
Joined: 5/13/2008
Status: offline
Hi. I need to loop through a set of folders and process files that are in each folder. Does anyone have a script that will basically just loop through folders? Taht would be enough. I could probably modify it to fit my needs. Thanks!
 
 
Post #: 1
 
 RE: Loop through folders... - 5/13/2008 1:16:17 AM   
  dm_4ever


Posts: 2414
Score: 38
Joined: 6/29/2006
From: Orange County, California
Status: offline
Do a search for....

FileSystemObject
Files
SubFolders
Recurse

You should be able to find plenty of examples of this frequently asked task.

_____________________________

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 bla4free)
 
 
Post #: 2
 
 RE: Loop through folders... - 5/13/2008 3:25:58 AM   
  bla4free

 

Posts: 6
Score: 0
Joined: 5/13/2008
Status: offline
Thanks. I got one working fine. However, I've run into a small problem with processing my files. here's my code:


      

What's happening is the entire script will get processed, and it will spawn 20 instances of ffmpeg to process my files. I don't want to run it 20 times simultaneously--I would rather it finish the first file, insert the info into the database, then move to the next file. Is this possible? Thanks!

(in reply to dm_4ever)
 
 
Post #: 3
 
 RE: Loop through folders... - 5/13/2008 4:11:41 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
objShell.Run "ffmpeg -i """& sfolder &"\"& folderIdx.Name &""" -ar 22050 -ab 32 -f flv -s 320x240 """& sfolder &"\"& strfilename &"""", 0, True

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to bla4free)
 
 
Post #: 4
 
 RE: Loop through folders... - 5/13/2008 6:28:53 AM   
  bla4free

 

Posts: 6
Score: 0
Joined: 5/13/2008
Status: offline
Thank you! That worked perfectly!

(in reply to ebgreen)
 
 
Post #: 5
 
 
 
  

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 >> Loop through folders... 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