Solved

Schedule a recompile

Posted on 2004-09-09
5
275 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
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 50 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

786 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