×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

VB6 Running Another Program

VB6 Running Another Program

VB6 Running Another Program

(OP)
Ok I work at a store were every night we have to run a program and follow certain steps with in the program. Thw hole process takes me about 15min. I was wondering if there is any way I can write a VB6 program that will do the steps for me.
   I guess im asking make a VB program were all I have to do is click one button and the VB6 program will do all the steps in the other program??

  Please help!!!!!

RE: VB6 Running Another Program

I don't know what kind of programs you have but command line batch job can be set up to run whatever programs you want. You may have to setup some macros to do your program steps within your programs. Works great after you set the programs up properly.

Bill

RE: VB6 Running Another Program

(OP)
Thank you, you have been a big help. I have one more question. Do you know of any programs that create macros for you???

RE: VB6 Running Another Program

This is certainly doable, but there are two questions that I feel you need to address.  
Is there a return value issue?  Do the results of one program feed into another, or is there a conditional based on the results of one program?

Is there a sequencing and timing issue?  Is is necessary to wait on one program to complete before starting the next?

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein

RE: VB6 Running Another Program

runalot4ever
Just as CajunCenturion said it is important to understand the order of the steps in your process which you want done.
If you do this with batch jobs the payback will just about be immediate.

You will have to create your own macros. Depending on what programs you are running it can be quite easy.

Be sure to test the program and try to anticipate problems such as the computer going down due to loss of power or whatever else can occur in you environment.

Bill

RE: VB6 Running Another Program

If you are running in XP you can use a simple scheduled task, or an AT command at the command prompt, you can also do a vc++ program that can handle precedence of your program via Win API to check wherever precedent task finish or not, and the same for the power and so on.

RE: VB6 Running Another Program

You may also use shell to execute the program within a VB6 app, and then use SendKeys to simulate keypresses in your program.

Regards,
Jon

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources