Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Process

Process

Scheduled Pinned Locked Moved C#
question
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ellllllllie
    wrote on last edited by
    #1

    hello, how can i launch multiple exe file using only one process best regards

    dghdfghdfghdfghdgh

    M R V S 4 Replies Last reply
    0
    • E ellllllllie

      hello, how can i launch multiple exe file using only one process best regards

      dghdfghdfghdfghdgh

      M Offline
      M Offline
      MarkB777
      wrote on last edited by
      #2

      Maybe split the parent process into several threads and launch your child processes from there?

      Mark Brock Click here to view my blog

      1 Reply Last reply
      0
      • E ellllllllie

        hello, how can i launch multiple exe file using only one process best regards

        dghdfghdfghdfghdgh

        R Offline
        R Offline
        Reelix
        wrote on last edited by
        #3

        System.Diagnotics.Process.Start("@C:\\Process1.exe"); System.Diagnotics.Process.Start("@C:\\Process2.exe"); System.Diagnotics.Process.Start("@C:\\Process3.exe"); System.Diagnotics.Process.Start("@C:\\Process4.exe"); System.Diagnotics.Process.Start("@C:\\Process5.exe"); Sure you could have an array of strings, and iterate through them, or something?

        -= Reelix =-

        1 Reply Last reply
        0
        • E ellllllllie

          hello, how can i launch multiple exe file using only one process best regards

          dghdfghdfghdfghdgh

          V Offline
          V Offline
          vytheese
          wrote on last edited by
          #4

          You can load your exe's in diffrent AppDomain under one process. The above solution is only applicable, if your exe all are .NEt compatible.

          Regards, Vythees Miles to go before sleep...

          1 Reply Last reply
          0
          • E ellllllllie

            hello, how can i launch multiple exe file using only one process best regards

            dghdfghdfghdfghdgh

            S Offline
            S Offline
            Spacix One
            wrote on last edited by
            #5

            With only one process and process.start?

            string batchFilePath = @"C:\mybatch.bat";
            File.WriteAllText(batchFilePath, string.Format("start process1.exe{0}start process2.exe{0}start process3.exe{0}start process4.exe", Environment.NewLine));
            using (Process batchProcess = new Process())
            {
            batchProcess.StartInfo.FileName = batchFilePath;
            batchProcess.Start();
            }


            -Spacix All your skynet questions[^] belong to solved


            I dislike the black-and-white voting system on questions/answers. X|


            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups