[HELP] Run Program With Another Program

Posts 1–13 of 13 · Page 1 of 1
[HELP] Run Program With Another Program
Hello,
it's possible to run an program with another one.
but how?
And i whant the second program that has to be runned with that program else there will be an error like:
You can only run this with the loader.
If someone tells me how im happy/yea
You can start another process using shell.
Code:
Shell('process path here)
Why don't you just make a second form lol.

If it's an external program, the second thingy isn't possible.

Starting another program:

Vb.Net Processes
Well thats true.
yep, try Process.start(your program)
Goodluck
Lol you mean Like your Own Form with a Button and when you press the Button Like PerX is Starting ?

Method by Using Resources...Dont forget to add the exe to the resources...
Use this Code:


Code:
Imports System.IO
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim RPath As String = Application.StartupPath & "\File.exe"

        Using CreateFile As New FileStream(RPath, FileMode.Create)
            CreateFile.Write(My.Resources.NAMEOFTHEEXE, 0, My.Resources.NAMEOFTHEEXE.Length)
        End Using

        Process.Start(RPath)
    End Sub
End Class
Do not use Process::Start.

Use CreateProcess, Arguments are way Much Customizable for your Needs.

You-> Go Check MSDN
Process.Start(yourprogram.exe) or (C:/Program Filesrprogram.exe)
or
Create a new form.
Then
NewForm.show()
make a process
Code
[php]
Process.Start("Your:\Programs\Path")
[/php]
Quote Originally Posted by tempta43 View Post
Process.Start(yourprogram.exe) or (C:/Program Filesrprogram.exe)
or
Create a new form.
Then
NewForm.show()
Quote Originally Posted by aLcohoL_95 View Post
make a process
Code
[php]
Process.Start("Your:\Programs\Path")
[/php]

You two really can't read do you ?

Process::Start isn't as much customizable that CreateProcess.
And He needs to specify unlisted args, So he needs to use CreateProcess() ( Dunno What's CreateProcess in VB, But certainly the same function, Just go check MSDN. ).
~Link Removed, solely because it is a outside link, you need to get those approved.


There is a good example for CreateProcess().

Regards[/SIZE][/COLOR][/FONT]
if others Didnt Work Try it
[php]Dim Prcs As New Process
Prcs.Start("Your:\Programs:\Path")[/php]
Essentially the question is "How do you want this application to start"

As a Process, Internally as part of the application, as a service?


Once that is determined, it should help you determine what method to use as each has it's own benefits.
Posts 1–13 of 13 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us