![]() |
|
|||||||
| ASP & VBScript Forum Need help from a webmaster with ASP or VBScript, you may ask in this forum? |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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! |
|
This ad is part of our Revenue Sharing program |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |