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. Run Command

Run Command

Scheduled Pinned Locked Moved C#
helptutorialquestion
4 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.
  • S Offline
    S Offline
    Shady Aly
    wrote on last edited by
    #1

    Hi All , how can i run that winrar command from my code the following is an example of that command winrar a D:\First.rar D:\first.txt i made it run from Startmenu-->Run i tried to run it using System.Diagonistic.Process but it always fail because it ecpect to find a flie that can be opened can you help me to find any way thank you, Shady

    M 1 Reply Last reply
    0
    • S Shady Aly

      Hi All , how can i run that winrar command from my code the following is an example of that command winrar a D:\First.rar D:\first.txt i made it run from Startmenu-->Run i tried to run it using System.Diagonistic.Process but it always fail because it ecpect to find a flie that can be opened can you help me to find any way thank you, Shady

      M Offline
      M Offline
      mav northwind
      wrote on last edited by
      #2

      You'll have to find where winrar.exe is stored on your computer and then give Process.Start() the full path. mav

      S 1 Reply Last reply
      0
      • M mav northwind

        You'll have to find where winrar.exe is stored on your computer and then give Process.Start() the full path. mav

        S Offline
        S Offline
        Shady Aly
        wrote on last edited by
        #3

        Dear mav.northwind , i tried what you sent me but the same error appeared and that what i typed : Process.Start(@"C:\WinRAR\WinRAR a D:First.rar D:first.txt");

        L 1 Reply Last reply
        0
        • S Shady Aly

          Dear mav.northwind , i tried what you sent me but the same error appeared and that what i typed : Process.Start(@"C:\WinRAR\WinRAR a D:First.rar D:first.txt");

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #4

          You have to seperate the arguments (there is a property for that),and need to specifiy the full path of the filename, including the extention. top secret
          Download xacc-ide 0.0.3 now!
          See some screenshots

          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