?
Solved

Schedule a recompile

Posted on 2004-09-09
5
Medium Priority
?
301 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 76

Expert Comment

by:David Lee
ID: 12020201
Why would you want to?
0
 

Author Comment

by:MariaHalt
ID: 12020250
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 200 total points
ID: 12020340
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
ID: 12020361
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
ID: 12020435
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses
Course of the Month12 days, 13 hours left to enroll

777 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