home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Applications and Operating Systems
Ask a Tech Support Question (free)!

Making a program "terminate and stay resident"

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1564
Discussions: 200,933, Posts: 2,379,175, Members: 246,298
Old February 7th, 2002, 08:56 PM   Digg it!   #1 (permalink)
Senior Member
 
deltaf508's Avatar
 
Join Date: Oct 2001
Location: Colorado
Posts: 684
Question
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
deltaf508 is offline   Reply With Quote
Old 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
vass0922 is online now   Reply With Quote
Old February 7th, 2002, 09:04 PM     #3 (permalink)
Senior Member
 
deltaf508's Avatar
 
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
deltaf508 is offline   Reply With Quote
Old 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.
vass0922 is online now   Reply With Quote
Old 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
vass0922 is online now   Reply With Quote
Old February 7th, 2002, 09:15 PM     #6 (permalink)
Senior Member
 
deltaf508's Avatar
 
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
deltaf508 is offline   Reply With Quote
Old 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
vass0922 is online now   Reply With Quote
Old February 8th, 2002, 01:51 AM     #8 (permalink)
Senior Member
 
deltaf508's Avatar
 
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
deltaf508 is offline   Reply With Quote
Old February 8th, 2002, 02:19 AM     #9 (permalink)
Ultimate Member
 
AzKidd69's Avatar
 
Join Date: Oct 2001
Location: Queen Creek, AZ
Posts: 1,480
Send a message via MSN to AzKidd69 Send a message via Yahoo to AzKidd69
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...
AzKidd69 is offline   Reply With Quote
Old February 8th, 2002, 03:27 AM     #10 (permalink)
Senior Member
 
deltaf508's Avatar
 
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
deltaf508 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2878)
Obama the Muslim (14)
California Passes Anti-Flat-HDTV Le.. (39)
Is the PSU I received dead? (10)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
HIS HD5770 graphic card question (15)
Print spooler problem (13)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
EVGA 9800 gtx help with finding a g.. (8)
New Computer wont recognize XP disc (7)
Ideal cheap graph card for PC-Gamin.. (17)
Recent Discussions
CPU fan stops spinning randomly (1)
Wireless Televisions. (1)
Ideal cheap graph card for PC-Gaming? (17)
BIOS won't read disk when I try to fl.. (0)
Install XP pro and a Vista laptop ?? (11)
Partition Magic caused HDD problem (2)
Graphics Card Upgrade Question (1)
favorit (1)
solutions for virtical white lines on.. (1)
Regular Build (3)
Fire in DVD (2)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)
Have you switched yet? (84)
Wireless Router+Cable Modems and Much.. (0)
Optical Audio A-B Switch (1)
windows vista security holes (9)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)
Wireless speakers for PC? (11)
Print spooler problem (13)
Help getting around port 80 for camer.. (2)
Display shows 3x5 inch in middle of s.. (3)
monitor will not turn on at all, (1)
World's largest Monopoly Game using G.. (331)


All times are GMT -4. The time now is 09:07 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28