Solved

Schedule a recompile

Posted on 2004-09-09
5
260 Views
Last Modified: 2010-05-02
Hello Experts.  I'm embarassed to ask, but can someone please tell me if there is a way to schedule a recompile?
0
Comment
Question by:MariaHalt
  • 2
  • 2
5 Comments
 
LVL 76

Expert Comment

by:David Lee
Comment Utility
Why would you want to?
0
 

Author Comment

by:MariaHalt
Comment Utility
Because I can't recompile when a user is running the application.  There are many users and I can't ask them to exit the application every time I make a minor change.  (And I don't want to come in early or stay late to do it.)  
0
 
LVL 32

Accepted Solution

by:
Erick37 earned 50 total points
Comment Utility
You can schedule a task to do a command line make of your project:

Schedule:
http://support.microsoft.com/default.aspx?scid=kb;en-us;308569&sd=tech

Command to compile your project:
path_to_vb6\Vb6.exe /make projectname[.vbp] [exename]

Reference:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconmakingrunningexecutablefile.asp

0
 
LVL 76

Expert Comment

by:David Lee
Comment Utility
It's extrememly unusual, and I'd say inadvisable, for the production users to be using the of the executable directly produced by your compile.  Most developers develop on one machine, or at least in a different folder, and then copy new versions of the executable to a different machine, or to a different folder where the user's actually access it.  If you did it that way, then you could compile any time you want, making your life a lot easier, and copy the resultant exe to the production folder when the users aren't around.  If you need to do that via a schedule, then you can write and schedule a batch file to handle it.
0
 

Author Comment

by:MariaHalt
Comment Utility
I actually do that.  The problem is my personal schedule.  The user's are in it a lot longer than I am available to recompile or copy a file, I need to do when I positively know that a user is not going to be running it, like the middle of the night.  Thanks for your input.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now