×
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!

*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

How can I execute two programs in t

How can I execute two programs in t

How can I execute two programs in t

(OP)
How can I execute two programs in the same shortcut in Windows?
Replies continue below

Recommended for you

RE: How can I execute two programs in t

MHendler,
This is the way I start a program called CopyFiles.exe then sldworks.exe starts.  I put the program under the SolidWorks Icon.  I am not sure this is what your after, but I thought I would give it a shot.


Option Explicit
Private Sub Form_Load()
Dim CopySolidWorksMacros As String
CopySolidWorksMacros = Shell("J:\@Engineering Central\Common\Applications\SolidWorks\Executables\CopyFile.exe", 1)   ' Run Copy Files program & SolidWorks.
Dim StartSolidWorks As String
On Error Resume Next ' if user leaves text box to soon, then they will be continued to next
       StartSolidWorks = Shell("C:\Program Files\SolidWorks\sldworks.exe", 1)   ' Run Copy Files program & SolidWorks.
Call cmdExit_Click
End Sub
Private Sub cmdExit_Click()
    Unload Me
    End
End Sub

' good luck

Bradley

RE: How can I execute two programs in t

(OP)
Ok...

But what I want is how to create a BAT file to execute two programs just clicking in the same shortcut in the Windows desktop.

RE: How can I execute two programs in t

A batch file is really simple.

First create a new text file on your desktop (or anywhere you want for that matter) and rename it to my2Programs.bat. The first part of the filename is really unimportant and you can name it to what ever you need, but the extention must remain .bat.

Now open the .bat file with notepad and enter the lines

c:\windows\system32\calc.exe
c:\windows\system32\charmap.exe

Close the batch file, making sure to save changes.

Then all you need to do is add a shortcut to your desktop and point it to the batch file.


Troy Williams
fenris@hotmail.com

RE: How can I execute two programs in t

(OP)
OK,

But I have to close the first application to the second be executed.

What I want is both of them executed at the same time.

Regards,

MHendler

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! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close