Regarding remote execution
-
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
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
-
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
-
I really thankful to you. I will have look at DebugView. But once again thank you. I am obliged. Thanks & Regards, Hemang
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