Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Starting a VB6 program with command line args from a bat file
I have an application where I want to start multiple instances of the same
VB6 program with different command line arguments for each instanciation.  I
thought I could write a bat file as follows..

MyProgram "This is the first command line argument"
MyProgram "This is the second command line argument"

However, when the bat file executes, the command line window opens and only
the first program runs. After I exit the first program, the second one
starts. When I exit the second program, the command line window exits.

Is there a way to use a bat file to start both programs and then have the
command line window close? If the bat approach wont work, is there another
simple way?



Report this thread to moderator Post Follow-up to this message
Old Post
hamil
05-27-05 08:55 AM


Re: Starting a VB6 program with command line args from a bat file
Try putting "start " in front of "MyProgram"...
--
Working Without a .NET?
http://classicvb.org/petition


hamil wrote:
> I have an application where I want to start multiple instances of the
> same VB6 program with different command line arguments for each
> instanciation.  I thought I could write a bat file as follows..
>
> MyProgram "This is the first command line argument"
> MyProgram "This is the second command line argument"
>
> However, when the bat file executes, the command line window opens
> and only the first program runs. After I exit the first program, the
> second one starts. When I exit the second program, the command line
> window exits.
>
> Is there a way to use a bat file to start both programs and then have
> the command line window close? If the bat approach wont work, is
> there another simple way?




Report this thread to moderator Post Follow-up to this message
Old Post
Karl E. Peterson
05-27-05 08:55 AM


Re: Starting a VB6 program with command line args from a bat file
Perfect!  Thanks

H


"Karl E. Peterson" wrote:

> Try putting "start " in front of "MyProgram"...
> --
> Working Without a .NET?
> http://classicvb.org/petition
>
>
> hamil wrote: 
>
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
hamil
05-27-05 08:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Basic archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:31 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.