Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > VBScript
|
VBScript For questions and discussions related to VBScript.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 11th, 2008, 02:45 AM
Registered User
 
Join Date: Feb 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Scheduling a .vbs execution

Hi, I have small .vbs file. And I usually double click it for running/executing. I want to schedule its execution. say,every monday 11 a.m it should execute by itself. What si the simplest way to do this?
vbs purpose is to take backup of some folder.

Reply With Quote
  #2 (permalink)  
Old June 29th, 2010, 09:32 AM
Authorized User
 
Join Date: May 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In Windows, you can use the Task Scheduler.
  1. Start, All Programs, Accessories, System Tools, Scheduled Tasks
  2. Double click on Add Scheduled Task.
  3. In the Scheduled Task Wizard, click Next. A list of applications on your system is collected, this may take several seconds.
  4. Click Browse, and navigate to the *.vbs file you want the schedule.
  5. Assign a name the scheduled task (or take the default name), and choose when to perform the task.
    • Daily
    • Weekly
    • Monthly
    • Ont time only
    • When my computer starts
    • When I log on
    Click Next.
  6. Set any start time and date parameters, and click Next.
  7. Assign the Windows credentials that script is to be run as, and click Next.
Finished. You can open the advanced properties for the task if you want to make any adjustments.
Of course, you can always return to Scheduled Tasks and manage the ones you create.
Reply With Quote
  #3 (permalink)  
Old June 29th, 2010, 07:30 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Hmmm...I wonder if Pippil is still looking for an answer to the question he asked 2 years 4 months and 19 days ago?
Reply With Quote
  #4 (permalink)  
Old June 29th, 2010, 10:52 PM
Authorized User
 
Join Date: May 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Old Pedant, perhaps Pippil is looking for an answer, or perhaps Pippil is not, or maybe someone else is looking for an answer.

The tone of your comments sound like you were not pleased that I posted the reply. This should be a place for sharing and participation should be encouraged.

By the way, are you an official moderator on this site? If you are not, I would respectfully advise that your cynical comments may hamper contribution. If this forum does belong to you, then a disclaimer should be made prior to registration.
Reply With Quote
  #5 (permalink)  
Old June 30th, 2010, 04:32 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

*MOST* forums have a section on "netiquette" (e.g., in their FAQs or similar) that says "don't respond to old posts" because it clutters up the threads and (as in my own case) cause me to read more threads for what turns out to be no reason.

However...

Since this forum doesn't have such a section, as I just discovered, obviously you aren't doing anything "wrong." So have fun.
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Scheduling mwahab Excel VBA 0 February 23rd, 2007 02:24 PM
Problem in scheduling a .vbs file m_soni21 VBScript 4 January 24th, 2006 05:29 AM
Application Scheduling echovue Excel VBA 4 January 12th, 2006 11:54 AM
Scheduling VBS file madhukp VBScript 1 September 22nd, 2004 07:14 AM
Scheduling mrkyn Classic ASP Basics 4 December 1st, 2003 03:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.