|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Starting a VB6 program with command line args from a bat fileI 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? Try putting "start " in front of "MyProgram"...
Show quoteHide quote > 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? Perfect! Thanks
H Show quoteHide quote "Karl E. Peterson" wrote: > 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? > > > >
Generate email from user
Correct way to get random results with arrays Run IE from VB6 ? VB6 vs VB.net compatibility Restore Form to Prior State How do you make child sub-commands visible in DataReport controls? Releasing lock on MDB file after DataReport1 closes Can VB6 & VB.net co-exist How do I put the focus back in a text box How do your read selected values from a BOUND ListBox in VB.Net |
|||||||||||||||||||||||