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. How to get the .exe file run after coying from a location to another location

How to get the .exe file run after coying from a location to another location

Scheduled Pinned Locked Moved C#
tutorial
3 Posts 3 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.
  • T Offline
    T Offline
    tyrone0109
    wrote on last edited by
    #1

    hi, i wanna ask for how to make the .exe file run automatic after finish copy it from a location to another location. the exe file will run automatic without double click on it.. thanks.. - tyrone

    D S 2 Replies Last reply
    0
    • T tyrone0109

      hi, i wanna ask for how to make the .exe file run automatic after finish copy it from a location to another location. the exe file will run automatic without double click on it.. thanks.. - tyrone

      D Offline
      D Offline
      DaveyM69
      wrote on last edited by
      #2

      If you mean the exe that is your application then you can't. If you're moving an exe file within your application, then you can use the System.Diagnostics.Process class and it's Start method to start the exe.

      Dave
      BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
      Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

      1 Reply Last reply
      0
      • T tyrone0109

        hi, i wanna ask for how to make the .exe file run automatic after finish copy it from a location to another location. the exe file will run automatic without double click on it.. thanks.. - tyrone

        S Offline
        S Offline
        sohighthesky
        wrote on last edited by
        #3

        Your can use your code to start it: System.Diagnostics.Process.Start(anotherlocation+filename);

        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