Computing.Net > Forums > Disk Operating System > Compiling VB programs using a batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Compiling VB programs using a batch file

Reply to Message Icon

Name: Monica Castro
Date: December 27, 2000 at 16:15:22 Pacific
Comment:

Hi,
I need to compile 18 VB programs one after the other using a .bat file. It looks like DOS does not wait for one compilation to finish before it starts a new one ...and that is causing me problems.
How can I instruct DOS to wait for a certain period of time before a new compilation starts? any ideas?



Sponsored Link
Ads by Google

Response Number 1
Name: Michael
Date: December 28, 2000 at 06:14:51 Pacific
Reply:

The easiest way to do this is to check for an existence of a file.

I am not familiar with Visual basic but I assume it takes a source file and makes an executable. Based on that assumption....

compile.exe source1.vb

:test1
if not exist source1.exe goto test1

compile.exe source2.vb
:test2
if not exist source2.exe goto test2

etc.

Basically what this does is wait for executable to be written to the disk before it continues on to the next portion of the batch file. Of course the specifics are not what you are looking for, but this is just to give you an idea how to write it.

Hope this helps and e-mail me if you need specific assistance.
-Michael


0

Response Number 2
Name: KMCS
Date: January 8, 2001 at 09:07:23 Pacific
Reply:

My AutoRun utility at www.kmcsonline.com will do exactly what you are looking for, and it will even create an icon for you.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Compiling VB programs using a batch file

Compilina VB programs using a DOS batch file www.computing.net/answers/dos/compilina-vb-programs-using-a-dos-batch-file/5233.html

Close Win Program with a Batch File www.computing.net/answers/dos/close-win-program-with-a-batch-file/13949.html

Using a batch file to randomly move my mouse www.computing.net/answers/dos/using-a-batch-file-to-randomly-move-my-mouse/3752.html