My motive is to to execute a program (e.g. winword which is installed on a server) at a client machine. And also the end user should not know the program is running form a remote machine i.e. end user just click on a button and the program get executed without asking any credentials.
Please help me how can i achieve this target.
Thanks in advance.
See http://csharp.net-informations.com/remoting/run-remote-application.htm
I hope it will help you a lot.
It sounds like you want to run the application over Remote Desktop using Seamless Windows, called RemoteApp on Windows Server 2008.
As a starting point, check out this article: Terminal Services RemoteApp (TS RemoteApp)
Related
I have just finished a project , for short an Instagram robot for following and other tasks which is written in c# and selenium, for make it more practical and prevent from cracking and stealing my code I would like to run it on a virtual server because it needs a single system to work continuously for running.
As I don't have any experience in working with VPS, I need some hints, first is my approach correct? can I execute my application in a virtual server like a personal computer?
Moreover can I use a VPS as a host? like some parts of my application run on the VPS and some parts run on the other host?I mean could they be connected together? something like a panel(run on host) which users are able to do different settings on their robots(run on vps).
thanks for any tips , article or advise in advance!
all you should do is connect to a VPS using the windows Remote Desktop application.
then it's basically like a personal computer, you can run your robot and close the Remote Desktop application and it keeps running.
I have a csharp app running in my customer's server. The app is a Windows Service.
I want to be able to tell if app is running, if it is stopped and lastly I want to be able to restart it. Everthing must be done from a web client app.
Because access from external networks to this machine is restricted by my customer, I was thinking about implementing an "Agent Client", which will be just another Windows Service running locally and that could execute the "restart" and "stop" commands. It would be pulling an external "Agent Server" to find out if commands need to be executed.
What do you think about this? Any better ideas?
Thanks a lot!
I have developed a TCP Server. I want my TCP server to be running even when I log off my machine. So clients can connect to it even when my computer is logged off. I was thinking if I must create a Windows Service to implement this approach, but I am not sure how to do so.
Please tell me how can I let my application to keep working even when my machine is logged off.
You can create a service by following these instructions:
http://support.microsoft.com/kb/251192
And then installing it to your PC should be as simple as using
installutil MyService.msc
(installutil will be part of your .NET installation, eg in C:\Windows\Microsoft.NET\Framework\v3.5)
You can the configure it to Startup Automatically by running services.msc from the command prompt.
You could launch it as a task from Windows Task Scheduler and set it to run even if you aren't logged in. This would work even if the application isn't a service.
If you want to be able to shut down your machine and still let the client connect then you need to deploy your application on a server.
Create a windows service and run it as LocalService http://msdn.microsoft.com/en-us/library/zt39148a(v=vs.80).aspx
Is there a way for a program to be executed without clicking on it? Is it possible for it to be executed the minute you receive the file?
I want to build a c# application that executes any file sent to the machine from another machine connected to it. I want to do this without remote desktop, so I would check a checkbox that says "execute when finished sending" and when it is received, it would execute the program. So I would essentially be able to remote desktop, without actually remote desktoping.
Thanks in advance
Do you realize what you are proposing? If this was possible, every machine out there would be infested with the nastiest viruses.
Why don't you build a server part that you leave running on your remote machine and then have it execute whatever your heart pleases.
There is a program out there (currently in Beta) called SkyNet that does this. You can drag and drop a URL or file onto one of your "Contacts" and (for a URL) it will open an new tab and navigate to that site on your friend's computer. For files, it automatically drops them on that person's desktop.
So it is definitely possible.
Perhaps you want to use secure shell. There are clients and servers for various platforms (you didn't specify) and you can run programs remotely. This is useful for e.g. automated testing.
I have written a tool that is run on the command line.
I can test it on the command line on my machine, and it works fine.
I then remote into the target server machine and run it on the command line there, and it still works.
However...this tool needs to remain running (its a monitoring tool).
I can't leave my remote session to that machine open for too long, as other people need to use it, and when I close my remote session, that command line tool ends.
I don't know how to, and would like to avoid needing to, write a windows service, but essentially I need that capability. I need to almost wrap my command line tool with a windows service that can remain running on the target machine while I disconnect.
Can anyone provide any insight/strategy on how to do this?
Edit:
Both of the below posts are helpful.
If it's Windows Server 2003 or earlier you can use Srvany.exe to run any application as a service. See here for details.
If it's Windows Server 2008, SrvAny isn't supported officially, but you might be able to hack it to work by copying it from Win2003 Resource Kit or earlier and then combining it with the instructions in Thomas answer in some way.
However, writing a proper Windows Service is really quite simple and it's the best way to make sure that it'll coexist happily with everything else.
Just create a Windows Service project in Visual Studio. In the OnStart you create a thread that runs your code. In the OnStop you use a flag to stop the service. Then you can make it better later.
See if this page helps:
http://www.msfn.org/board/topic/83272-how-to-run-a-program-as-a-service/
An alternate solution is to use the PsExec to launch your monitoring tool on the remote machine in detached mode, i.e.:
PsExec.exe \\remote_machine -d C:\...\monitoring_tool.exe
PsExec.exe launches monitoring_tool.exe on the remote machine and then terminates itself. It does not wait for monitoring_tool.exe to terminate.