Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To 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
 
Old December 3rd, 2004, 05:29 PM
Authorized User
 
Join Date: Nov 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to run a program 7 days a week

hello,

I have to write a program that will run 7 days per week at 9.00pm and append the data to the 3 tables in SQL 2000.
Now i am not sure how to go about it.
I am at lost how to go about it using VB6.0
and write a stored proc tht will run 7 days per week at 9.00pm and also append to the 3 tables?
Pls can someone guide me and give a similar sample code?

 
Old December 3rd, 2004, 11:08 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Go to the Control Panel -> Scheduled Tasks, and add you program to start every day at 9PM

Marco
 
Old December 17th, 2004, 06:56 AM
Aal Aal is offline
Authorized User
 
Join Date: Oct 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

that can be done too ...
or for security purpose, you can create a key in your windows registry. You can made a key for your password too.And in your form_load event check for the values if the comparison is wright load it else end it, and do what you want to do.
Oh ya, put your program in startup key Run --- that will load your program automatically in startup.
hope this can help u
Alexis ...






Similar Threads
Thread Thread Starter Forum Replies Last Post
run a program automatically hastikeyvan ASP.NET 2.0 Professional 1 December 18th, 2009 03:34 PM
program compiles but won't run jwg Visual C++ 0 July 10th, 2008 09:42 AM
run a program with VBA wdepreter Excel VBA 8 February 7th, 2007 08:33 AM
Run program from another computer ngthhoang Visual C++ 3 June 27th, 2004 04:20 AM





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