Simcoder Posted December 6, 2004 Posted December 6, 2004 Ok, I have about 5 computers setup on my home Lan. All of the computers have the Framework installed on them. My question is this, how would I run my vb application on each computer, from only one machine. Could I do it programatically with Vb.Net or would vb script be better, or is it even realistic. I know it has to be possible, because there is an application out there that Administrators use to run applications on their users computers from their computer alone. I know this because my brother uses it at his job, as he is the main Admin for his company. Any helpful code samples, links, etc, would be much appreciated. Thanks In Advance -=Simcoder=- Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
donnacha Posted December 6, 2004 Posted December 6, 2004 I can't tell you exactly how to do it, but there is a small security setup that has to be done to allow .NET to execute across a network. We have done it before but I can't remember what it was, only that in the end it was a very small change on the security. Quote Hamlet
Simcoder Posted December 6, 2004 Author Posted December 6, 2004 Are you talking about going into the control panel, Administrative Tools, Microsoft.Net Framework Configuration, etc. If thats what your talking about, then I already have it set up on my other computers on my Lan to Full Trust, if thats even correct. Security is not an issue, cause they are all my own computers and I can do whatever settings necessary, I just need to know what code to write in my program to execute it. Thanks, hope someone can point me in the right direction Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
donnacha Posted December 7, 2004 Posted December 7, 2004 You dont have to do anything in your app to allow it t run across the network. If that is all you want to do (i.e. Install once and run from many PCs). Now if you have database access and other similar stuff, then you will have to design your app to cater for concurrent access and such problems. Quote Hamlet
Simcoder Posted December 7, 2004 Author Posted December 7, 2004 Maybe I didn't explain myself right. I have 5 computers all on the same network. One of these 5 computers is my main computer. From this main computer I have, I want to write a vb application, that will automatically run on all 5 computers, including the main one with the touch of a button. I don't want to go to each computer individually and run the application. I want the application to run on all of them by only using "1" computer. I have a website that offers a free tool that allows you to do this, but I'd rather code it myself than use 3rd party software to accomplish my task. If i still didnt explain it right, check this website out and you'll get a gist of what I'm trying to do http://www.sysinternals.com/ntw2k/freeware/psexec.shtml Thanks, -=Simcoder=- Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
donnacha Posted December 7, 2004 Posted December 7, 2004 I think what you need to look at for this case is the .NET remoting which allows aps on different networks to communicate. No matter what you do you will need to have the app installed on the individual computers for this. If that is not what you want then a central app that launches standard procerss/caommands is all you can do. I think that remoting is what you want, but I can't help you any further on this. Quote Hamlet
Simcoder Posted December 7, 2004 Author Posted December 7, 2004 I think you are correct donnacha. I'm gonna go ahead and give .Net Remoting a try. Yeah, and I realize that the app must be installed on the target pc and that is fine. Previously, I was using the psExec program to copy the application to the target comp and then immediately run it, and it worked fine. So I'll see if I can get it working myself, if not, I'll continue to use psExec for the time being. Thank you for your timely replies and suggestions. It was a big help. =D Many Thanks, -=Simcoder=- Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
*Gurus* Derek Stone Posted December 8, 2004 *Gurus* Posted December 8, 2004 Why not simply run the application using the logon scripts defined by Active Directory? .NET remoting has very little to do with launching processes remotely. Remoting is a communications protocol used for developing distributed applications. Quote Posting Guidelines
Simcoder Posted December 8, 2004 Author Posted December 8, 2004 Yeah, I looked into Remoting and I couldn't find a viable solution there. I did a search for Active Directory and some of it looks pretty promising. The Shell Function seemed to be able to launch exe's, however, I didn't find anything for the logon scripts. Think you could post some links or something Derek. Thanks in advance. -=Simcoder=- Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
neodammer Posted December 8, 2004 Posted December 8, 2004 I did something similar before at home. 1. I created a program that was extremely small and only monitored one port for incoming data for my main program . 'would overwrite the old version 2. Created a program from my main pc and sent it out via another program "tcp sender" to all my other pc's who was already listening for it 3. THe other program that accepts the data deletes the old program and executes the new one. Problem: Virus Detectors dont like this its sometimes deemed as a threat and firewalls go off the heezy for sheezy lol Quote Enzin Research and Development
Simcoder Posted December 9, 2004 Author Posted December 9, 2004 LoL, I'll turn my virus scanners off I have too, don't want them going off the heezy for sheezy, ;) Quote Whatever thy hand findest to do, do it with all thy heart - Jesus
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.