Announcement

Collapse
No announcement yet.

Run file that is not in the My Project folder.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Run file that is not in the My Project folder.

    I need to run a file that is on the network, but whenever I try to add it to run it the autoplay adds the file to my project, but I don't want it to add, I just want it to run the file that is on the network, I'm using google translator, sorry for english.

  • #2
    try File.Run
    PHP Code:
    "\\\\ server_name\\ folder \\ yourfile.exe 

    Comment


    • #3
      I would like to know if there is a way to execute an external file (which is not in the Docs folder) the file is in the following path


      //\sala\SistemaGuarabira\Apresentacoes\Painel\Office \Comandos\Excel.exe

      But every time I select Excel.exe it adds that file to the Docs folder. Is there any code that can do this?

      Comment


      • #4
        Herrin answered your other post

        you could try this - is sala your network drive?
        Code:
        path = "\\\\ sala\\SistemaGuarabira\\Apresentacoes\\Painel\\Office\\Comandos\[COLOR=#27ae60]\Excel.exe"[/COLOR]
        Shell.Execute(path, "open", "", "", SW_SHOWNORMAL, false);
        use file find to check that your path is correct, but yes you can run/execute external fie

        Comment


        • #5
          Originally posted by colc View Post
          Herrin answered your other post

          you could try this - is sala your network drive?
          Code:
          path = "\\\\ sala\\SistemaGuarabira\\Apresentacoes\\Painel\\Office\\Comandos\[COLOR=#27ae60]\Excel.exe"[/COLOR]
          Shell.Execute(path, "open", "", "", SW_SHOWNORMAL, false);
          use file find to check that your path is correct, but yes you can run/execute external fie
          YES, YES AND YES, works perfectly!

          I just need to chance to this.

          Code:
          path = "\\\\ sala\\SistemaGuarabira\\Apresentacoes\\Painel\\Off ice\\Comandos\\Excel.exe" Shell.Execute(path, "open", "", "", SW_SHOWNORMAL, false);
          But now a cant run an external file! Thanks Mr Been (Colc) !!!

          Comment

          Working...
          X