Solved

Schedule a recompile

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
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…
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…

840 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