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. Web Development
  3. ASP.NET
  4. calling exe

calling exe

Scheduled Pinned Locked Moved ASP.NET
10 Posts 4 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.
  • K Offline
    K Offline
    kadkir
    wrote on last edited by
    #1

    I am calling a third party exe from a webpage, what I need is, can I set location, size of GUI of that exe from my web page. Thank U all.. kiran

    C A 2 Replies Last reply
    0
    • K kadkir

      I am calling a third party exe from a webpage, what I need is, can I set location, size of GUI of that exe from my web page. Thank U all.. kiran

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I see - you were spamming the site. You need to explain what you're doing. You can't launch an exe from a web page.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      A 1 Reply Last reply
      0
      • K kadkir

        I am calling a third party exe from a webpage, what I need is, can I set location, size of GUI of that exe from my web page. Thank U all.. kiran

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Does your third party software provide any API for that ? if yes you can change the Size of GUI.

        Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"

        C 1 Reply Last reply
        0
        • A Abhijit Jana

          Does your third party software provide any API for that ? if yes you can change the Size of GUI.

          Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          The third party API is irrelevant, if he launches another app, he's going to use ShellExecute or Process.Start.

          Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          K 1 Reply Last reply
          0
          • C Christian Graus

            I see - you were spamming the site. You need to explain what you're doing. You can't launch an exe from a web page.

            Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

            A Offline
            A Offline
            Abhijit Jana
            wrote on last edited by
            #5

            Christian Graus wrote:

            You can't launch an exe from a web page.

            why sir ? we can launch as exe as process. then what is the problem ? This is just an example. protected void Button1_Click(object sender, EventArgs e) { Process P = new Process(); P.StartInfo.FileName = "C:\\windows\\notepad.exe"; P.Start(); } please explain .

            Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"

            N 1 Reply Last reply
            0
            • A Abhijit Jana

              Christian Graus wrote:

              You can't launch an exe from a web page.

              why sir ? we can launch as exe as process. then what is the problem ? This is just an example. protected void Button1_Click(object sender, EventArgs e) { Process P = new Process(); P.StartInfo.FileName = "C:\\windows\\notepad.exe"; P.Start(); } please explain .

              Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"

              N Offline
              N Offline
              N a v a n e e t h
              wrote on last edited by
              #6

              Abhijit Jana wrote:

              we can launch as exe as process. then what is the problem ?

              You can launch EXE, no problem. But it will be launched on the server and not on the client machine. So what's the use ?

              All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

              A C 2 Replies Last reply
              0
              • N N a v a n e e t h

                Abhijit Jana wrote:

                we can launch as exe as process. then what is the problem ?

                You can launch EXE, no problem. But it will be launched on the server and not on the client machine. So what's the use ?

                All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

                A Offline
                A Offline
                Abhijit Jana
                wrote on last edited by
                #7

                ohhh :doh: :omg: :wtf: now i have got the answer . Thanks

                Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"

                1 Reply Last reply
                0
                • N N a v a n e e t h

                  Abhijit Jana wrote:

                  we can launch as exe as process. then what is the problem ?

                  You can launch EXE, no problem. But it will be launched on the server and not on the client machine. So what's the use ?

                  All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  *grin*

                  Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                  1 Reply Last reply
                  0
                  • C Christian Graus

                    The third party API is irrelevant, if he launches another app, he's going to use ShellExecute or Process.Start.

                    Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                    K Offline
                    K Offline
                    kadkir
                    wrote on last edited by
                    #9

                    I am Thankfull for ur response. Here I am facing 2 Problems. 1. From my ASP.Net web application I am calling an exe using javascript. Here is my code.

                    var h;
                    h=new ActivexObject("wscript.shell");
                    h=run("c:\\sample.exe /v") ;
                    h=null;

                    So I am able to run it on client side. But as it is a third exe I am unable to set its location, size attributes. I pleed ur help in this regard. 2. In some other application I need to call a third party exe from my windows application. I am completely new to these C APIs and using dlls in applns, so suggest whate are the APIs to be used in what manner. Where from do I get this information. I feel sorry for confusing you, Thank U all, kiran

                    N 1 Reply Last reply
                    0
                    • K kadkir

                      I am Thankfull for ur response. Here I am facing 2 Problems. 1. From my ASP.Net web application I am calling an exe using javascript. Here is my code.

                      var h;
                      h=new ActivexObject("wscript.shell");
                      h=run("c:\\sample.exe /v") ;
                      h=null;

                      So I am able to run it on client side. But as it is a third exe I am unable to set its location, size attributes. I pleed ur help in this regard. 2. In some other application I need to call a third party exe from my windows application. I am completely new to these C APIs and using dlls in applns, so suggest whate are the APIs to be used in what manner. Where from do I get this information. I feel sorry for confusing you, Thank U all, kiran

                      N Offline
                      N Offline
                      N a v a n e e t h
                      wrote on last edited by
                      #10

                      1 - AFAIK, you can't set size and other attributes via JS. 2 - You can use Process class and call Process.Start(). It allows you to control how the targeted exe should run.

                      All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

                      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