Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


question about enum folders email output

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> question about enum folders email output
  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 >>
 question about enum folders email output - 6/1/2007 3:41:08 AM   
  faulkkev

 

Posts: 151
Score: 0
Joined: 11/1/2005
Status: offline
I have a script to enum a time entry folder and it ouputs the results to an email.  This is used to remind people to put in there time cards.  My question is this -- Since the directory being scanned has months of of folders each representing a work work then housed in a month folder scanning all the folders isn't practicle.  I am now hard coding the week in question/pop up box into the script.  Is there a way to have the script check the date(from my workstation) and format it such that i can say if a folder name meets these prereqs scan it.  For exmaple a folder might be named 2007_05_26 which represents the work week of may 26 2007 which starts on a saturday.  I wonder if there is a way to take that and have the vbscript be able to say if current date is 7 days older than 2007_05_26 don't enumerate.  My goal is for it to enumerate the current week or maybe two.  I don't know how to get the script to intrepret the naming format against the current calendar date.  I would use mod or creation dates but they can be misleading.
 
 
Post #: 1
 
 RE: question about enum folders email output - 6/1/2007 3:49:04 AM   
  ebgreen


Posts: 5035
Score: 31
Joined: 7/12/2005
Status: online
Look at the documentation for the DateDiff() function.

_____________________________

"... 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 faulkkev)
 
 
Post #: 2
 
 RE: question about enum folders email output - 6/1/2007 4:45:12 AM   
  DiGiTAL.SkReAM


Posts: 1184
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
Also, take a look at http://www.pctools.com/guides/scripting/id/23/?act=reference for a more in-depth explanation of Date/Time functions in vbscript.

_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury

(in reply to ebgreen)
 
 
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 >> question about enum folders email output 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