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 can i use another application outside my program?

How can i use another application outside my program?

Scheduled Pinned Locked Moved C#
questionhelptutorial
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.
  • A Offline
    A Offline
    abiisalwayshappy
    wrote on last edited by
    #1

    hi, Please tell me how can i use another application(*.exe) outside my program. And one more problem i face is how can i rename file ? For example: i have a picker, after i choose a file and fill the new name, this file will be save with the new name. thanks in advance. :)

    J S 2 Replies Last reply
    0
    • A abiisalwayshappy

      hi, Please tell me how can i use another application(*.exe) outside my program. And one more problem i face is how can i rename file ? For example: i have a picker, after i choose a file and fill the new name, this file will be save with the new name. thanks in advance. :)

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      abiisalwayshappy wrote:

      Please tell me how can i use another application(*.exe) outside my program.

      You mean run another program from your program? Look into System.Diagnostics.Process class.

      abiisalwayshappy wrote:

      how can i rename file ?

      System.IO.File.Move can "move" a file from its current directory and into its current directory with a new name.

      Tech, life, family, faith: Give me a visit. I'm currently blogging about: Islamic Domination: Coming to a Jewish state near you! The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

      1 Reply Last reply
      0
      • A abiisalwayshappy

        hi, Please tell me how can i use another application(*.exe) outside my program. And one more problem i face is how can i rename file ? For example: i have a picker, after i choose a file and fill the new name, this file will be save with the new name. thanks in advance. :)

        S Offline
        S Offline
        Saqib Mehmood
        wrote on last edited by
        #3

        you can start an external process by using Process.Start from System.Diagnostics namespace. to rename a file you can use File.Move in which you need to specify source and target. Saqib

        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