Making a program "terminate and stay resident"  | |
February 7th, 2002, 08:56 PM
|
#1 (permalink)
| | Senior Member
Join Date: Oct 2001 Location: Colorado
Posts: 684
| Making a program "terminate and stay resident"
Can someone tell me how to make a program "terminate and stay resident" (TSR) in windows. Basically I want a program to launch on start up but stay down in the system try like realplayer or hidden from sight but still active. Is this even posible? The program is "winpopup" that comes with windows 98. It basically a program that allows you to "instant message" others over your network. This would come in real handy at my house.  The program is small @ only 27k, so I'm not worried about system resources.
Anyone have any Ideas for me.
FYI: to run the program goto Run -> type "winpopup" to see what I'm talking about.
Gary |
| |
February 7th, 2002, 09:01 PM
|
#2 (permalink)
| | Not Really a Member
Join Date: Oct 2001
Posts: 25,385
|
That doesn't need to run to receive a message does it?
If anything you could write a small script when you double click it it asks who do you want to message and then what is the message and have it put the output into a command line winpopup workstationname message |
| |
February 7th, 2002, 09:04 PM
|
#3 (permalink)
| | Senior Member
Join Date: Oct 2001 Location: Colorado
Posts: 684
|
Yes, it does have to stay active to work. Crummy windoze design if you ask me. Anyway, I just don't want it to be minimize all the time and waste space on my toolbar. I'm trying to get it more out of the way - if you know what I mean...
Gary |
| |
February 7th, 2002, 09:07 PM
|
#4 (permalink)
| | Not Really a Member
Join Date: Oct 2001
Posts: 25,385
|
Ok try this
put the following code into a text file and name it winpopup.vbs Code: Option Explicit
'' To run winpopup automatically from a script
Dim objShell
Dim strWrkStnName
Dim strMessage
Dim strCommandLine
Set objShell = CreateObject("WScript.Shell")
strWrkStnName = InputBox("Workstation Name?")
strMessage = InputBox("What is the desired message")
strCommandLine = "winpopup " & strWrkStnName & " " & strMessage
msgbox strcommandline
objShell.Run(strCommandLine) see if that works not sure of the syntax, but if its like net send this should work fine. |
| |
February 7th, 2002, 09:09 PM
|
#5 (permalink)
| | Not Really a Member
Join Date: Oct 2001
Posts: 25,385
|
hmm have you tried net send?
if you have to minimize it, thats how the app is coded and not sure of anyway around it w/o recoding
if you want to use net send you can change that script to use "net send" instead of winpopup |
| |
February 7th, 2002, 09:15 PM
|
#6 (permalink)
| | Senior Member
Join Date: Oct 2001 Location: Colorado
Posts: 684
|
What is "net send" and where do I get it? I will try the script also, but i'm getting ready to eat.  Be back in a few....
Gary |
| |
February 7th, 2002, 11:29 PM
|
#7 (permalink)
| | Not Really a Member
Join Date: Oct 2001
Posts: 25,385
|
go to command prompt and type
net send <workstation name> <message>
it'll simply pop up a message box on the workstation...
hmm not sure if that would require some other tweaks...
you may have to edit your lmhosts file to use the workstation name, otherwise maybe able to use IP
If you want you can simply change the script to be
strCommandLine = "net send " & strWrkStnName & " " & strMessage
and it'll work just as well  |
| |
February 8th, 2002, 01:51 AM
|
#8 (permalink)
| | Senior Member
Join Date: Oct 2001 Location: Colorado
Posts: 684
|
I guess I'm not understanding this whole net send thing. I understand the concept but I tried it and couldn't get it to work. Do you leave the <> in and put the message inside or what? And do you type it in at the Run prompt or an actuall command prompt window. I should clarify that I am also using a Win98 machine and not an NT workstation if that makes any difference.
Any more advice someone can crank out for me. Or any other ideas for programs that will do the same thing - send messaged accross networks.
THanks,
Gary |
| |
February 8th, 2002, 02:19 AM
|
#9 (permalink)
| | Ultimate Member
Join Date: Oct 2001 Location: Queen Creek, AZ
Posts: 1,480
|
net send is an NT thing.. winpopup is the win9x version but it has to be running AFAIK....
they can communicate to each other tho...
as far as actually helping.. I can't sorry... |
| |
February 8th, 2002, 03:27 AM
|
#10 (permalink)
| | Senior Member
Join Date: Oct 2001 Location: Colorado
Posts: 684
| I found a solution!!!
I looked on the net for a Lan instant messaging program and came accross this. It works perfect. It lets you IM, Chat, etc. Very easy to use and runs harmlessly in the systray. I couldn't be happier.
In case your wondering it is called "Inter-chat" Lan communication device. The link is: Inter-Chat
It rates 90% on Cnet.com downloads.
Maybe this will help some others out as well....
Thanks for all the help though,
Gary |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |