Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


File Copy on Modified Date

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> File Copy on Modified Date
  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 >>
 File Copy on Modified Date - 6/25/2008 1:28:05 AM   
  nb1

 

Posts: 1
Score: 0
Joined: 6/25/2008
Status: offline
I expect this is probably a silly question, but I am new to writing vbs scripts, so any help is much appreciated.

I am trying to write a script that can be run as a scheduled task.  Firstly to copy files modified in the last 24hours from the first directory to the second.
Secondly to check another pair of directories, and if the first directory has files in it from a more recent month the second directory to copy all files modified within 24H of that file from the first directory to the second.  Code below.

This throws the error;

VB_Script.vbs(11, 1) Microsoft VBScript compilation error: Expected statement
>Exit code: 1


      
 
 
Post #: 1
 
 RE: File Copy on Modified Date - 6/25/2008 1:53:26 AM   
  ebgreen


Posts: 5041
Score: 31
Joined: 7/12/2005
Status: offline
I would suggest searching. This is a very common question.

_____________________________

"... 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 nb1)
 
 
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 >> File Copy on Modified Date 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