Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


need help Listing two deffirent directories into HTML

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> need help Listing two deffirent directories into HTML
  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 >>
 need help Listing two deffirent directories into HTML - 7/19/2006 12:06:01 AM   
  blakeph

 

Posts: 17
Score: 0
Joined: 5/28/2006
Status: offline
hi all!

I have here a working script that will list all the files in the given directory into HTML, and then will send it to an email address using the CDO. And the output in the body of the email would be listed in a table that would look something like this:
Directory Listing for \\Server001\archive
1 test.zip   3.1MB
2 test2.zip 3.2MB
3 test3.zip 3.0MB

But, I wanted to add another directory te be included in the email, so that I have something like this:
Directory Listing for \\Server001\archive
1 test.zip   3.1MB
2 test2.zip 3.2MB
3 test3.zip 3.0MB

Directory Listing for \\Server002\archive
1 test.zip   3.1MB
2 test2.zip 3.2MB
3 test3.zip 3.0MB

So how I would do it?

Below is the code:

      

thanks?
 
 
Post #: 1
 
 RE: need help Listing two deffirent directories into HTML - 7/19/2006 4:54:58 AM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
Hiya BlakePh,

You could save alot of time by just copying what you have, and make sure you have the correct var's defined...please see my example:

PS. every new section starts with '***, this is to differentiate between the sections, easier to recognize


      

_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to blakeph)
 
 
Post #: 2
 
 
 
  

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 >> need help Listing two deffirent directories into HTML 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