Webmaster Forum

Go Back   Webmaster Forum > Scripting/Programming & Debugging > ASP & VBScript Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

ASP & VBScript Forum Need help from a webmaster with ASP or VBScript, you may ask in this forum?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-03-2008, 07:23 PM
libertyguy libertyguy is offline
Junior Member
 
Join Date: Jun 2008
Posts: 1
libertyguy is an unknown quantity at this point
Submit to Clesto Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq Submit to Spurl
Default VB Script for folder listing. Need help with filter

Hello pro coders,

I'm a complete newb at scripting, as in this is my first time ever even attempting it. I've been tasked with (as busy work more or less) creating a vb script that will list the folders inside a "ready to archive" folder, create a csv file, and move the files to a designated folder.

So far this is all I have:

directoryname="\\server\LCS_2\ --THESE CAN ARCHIVE"
Set fso = CreateObject("Scripting.FileSystemObject")
set mainfolder=fso.GetFolder("\\server\LCS_2\ --THESE CAN ARCHIVE")
Set foldercollection = mainfolder.SubFolders
For Each folder In foldercollection
Wscript.Echo folder.Name
Next

Even this little bit required some expert advice, as like I said I am a complete beginner with all of this. At any rate, what I have so far is doing what it should; it is listing the contents of said folder. However, I want to filter out folders that start with a period (hidden folders), and I would like for these folders to be ignored altogether.

Any advice is much appreciated with moving these folders and creating a text file of the listing before the move. Please remember that I am not too savvy with this so if you could explain in the most dumb-downed version possible I would be forever greatful.

Thank you!
Reply With Quote

This ad is part of our Revenue Sharing program
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scrolling files from folder! deal HTML Forum 0 04-21-2008 03:54 PM
Filter Clean Function not working KIFIKA PHP Forum 1 03-15-2007 12:42 AM


All times are GMT. The time now is 06:39 AM.


Creative Commons License
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30