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 / C++ / MFC
  4. Regarding remote execution

Regarding remote execution

Scheduled Pinned Locked Moved C / C++ / MFC
helpsysadmintoolsquestion
8 Posts 2 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.
  • H Offline
    H Offline
    H4u32
    wrote on last edited by
    #1

    Hello all, I am facing a critical issue. I have my executable at server side which user downloads. User is able to download. Now i want that application to execute itself rather than forcing user to go to downloaded location and execute it. So how would i accomplish this? Is there any way on server side that run downloaded executable on client machine.?? I mean script or something?? Please help me out. Any help would be greatly appreciated. Thanks & Regards, Hemang

    R 1 Reply Last reply
    0
    • H H4u32

      Hello all, I am facing a critical issue. I have my executable at server side which user downloads. User is able to download. Now i want that application to execute itself rather than forcing user to go to downloaded location and execute it. So how would i accomplish this? Is there any way on server side that run downloaded executable on client machine.?? I mean script or something?? Please help me out. Any help would be greatly appreciated. Thanks & Regards, Hemang

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      How is the download happening? You can execute the downloaded binary automatically, only if your program on the client machine is doing the download. If the user is doing the download manually, then he'll have to execute it.

      Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

      H 1 Reply Last reply
      0
      • R Rajesh R Subramanian

        How is the download happening? You can execute the downloaded binary automatically, only if your program on the client machine is doing the download. If the user is doing the download manually, then he'll have to execute it.

        Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

        H Offline
        H Offline
        H4u32
        wrote on last edited by
        #3

        First Thanks for replying . ACtually my program is doing download and execition. But for some specific reason it is not working for some of the client. So do not waant to change that client program as it is downloading perfectly and only getting problem in execution of that program so do not want to force user to manually execute it but somehow execute downloaded exe by itself on client machine either from server or triggering some event while download so it will auto-execute downloaded file from its location I look forward for further help. Thanks & Regards, Hemang

        R 1 Reply Last reply
        0
        • H H4u32

          First Thanks for replying . ACtually my program is doing download and execition. But for some specific reason it is not working for some of the client. So do not waant to change that client program as it is downloading perfectly and only getting problem in execution of that program so do not want to force user to manually execute it but somehow execute downloaded exe by itself on client machine either from server or triggering some event while download so it will auto-execute downloaded file from its location I look forward for further help. Thanks & Regards, Hemang

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          Hemang Raval wrote:

          getting problem

          This is vague. What exactly is the 'problem'? I suggest that you try analyzing the log file of your application.

          Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

          H 1 Reply Last reply
          0
          • R Rajesh R Subramanian

            Hemang Raval wrote:

            getting problem

            This is vague. What exactly is the 'problem'? I suggest that you try analyzing the log file of your application.

            Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

            H Offline
            H Offline
            H4u32
            wrote on last edited by
            #5

            I knew that it would be difficult to explain. You are right that it is also difficult for you to understand where exactl the problem is. But can you please throw light in some other direction. Suppose i want to execute a particular application after it is downloaded. Is it possible for executable file that is being downloaded to execute itelf after its complete downloading or from server where it is being downloaded, can we do at that side (server) to execute it. I may be silly asking such question but this kind of question arises when i think of spyware and viruses. Because nobody tell them to execute but they maliciously run after being downloaded. So please further share your knowledge. Thanks & Regards, Hemang Thankd

            R 1 Reply Last reply
            0
            • H H4u32

              I knew that it would be difficult to explain. You are right that it is also difficult for you to understand where exactl the problem is. But can you please throw light in some other direction. Suppose i want to execute a particular application after it is downloaded. Is it possible for executable file that is being downloaded to execute itelf after its complete downloading or from server where it is being downloaded, can we do at that side (server) to execute it. I may be silly asking such question but this kind of question arises when i think of spyware and viruses. Because nobody tell them to execute but they maliciously run after being downloaded. So please further share your knowledge. Thanks & Regards, Hemang Thankd

              R Offline
              R Offline
              Rajesh R Subramanian
              wrote on last edited by
              #6

              An binary will not be able to execute 'itself' after it's been downloaded. You either need a watchdog which will be monitoring the download to execute it upon completion. But as you already say that it is your own application that does the download, it could as well execute the file after download. If there are issues on specific computers, try logging the events from your application and find out what is causing this problem. You can use an external debugger like DebugView[^]to print debug strings (the name is misleading, works on release versions as well) if you wish not to use a log file.

              Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

              H 1 Reply Last reply
              0
              • R Rajesh R Subramanian

                An binary will not be able to execute 'itself' after it's been downloaded. You either need a watchdog which will be monitoring the download to execute it upon completion. But as you already say that it is your own application that does the download, it could as well execute the file after download. If there are issues on specific computers, try logging the events from your application and find out what is causing this problem. You can use an external debugger like DebugView[^]to print debug strings (the name is misleading, works on release versions as well) if you wish not to use a log file.

                Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                H Offline
                H Offline
                H4u32
                wrote on last edited by
                #7

                I really thankful to you. I will have look at DebugView. But once again thank you. I am obliged. Thanks & Regards, Hemang

                R 1 Reply Last reply
                0
                • H H4u32

                  I really thankful to you. I will have look at DebugView. But once again thank you. I am obliged. Thanks & Regards, Hemang

                  R Offline
                  R Offline
                  Rajesh R Subramanian
                  wrote on last edited by
                  #8

                  You're most welcome. And I forgot to mention: The API which prints to DebugView is OutputDebugString. Look it up in MSDN.

                  Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                  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