|
-
Dec 20th, 2003, 06:25 AM
#1
Thread Starter
Junior Member
-
Dec 20th, 2003, 06:28 AM
#2
Supreme User
you should make thread titles more descriptive
-
Dec 20th, 2003, 06:28 AM
#3
Thread Starter
Junior Member
sorry lol i really didnt have a clue what to call it
-
Dec 20th, 2003, 06:30 AM
#4
Supreme User
You will get people who can help you better this way, as they know exactly what you are after. Try naming the thread:
"Send message with NetSend through LAN?"
Just edit your first post to change the thread title
-
Dec 20th, 2003, 06:32 AM
#5
Thread Starter
Junior Member
Done.
-
Dec 20th, 2003, 06:34 AM
#6
Supreme User
Good one dude, welcome to the forums
Anyway, have you looked at www.pscode.com for examples on this? Theres loads of examples with source code for similiar things. Otherwise you can search the forums here
-
Dec 20th, 2003, 06:39 AM
#7
Thread Starter
Junior Member
www.pscode.com not working for me and i tried searching before i posted hehe, hi btw
-
Dec 20th, 2003, 06:40 AM
#8
Supreme User
Ok, yeah it doesnt work, try:
www.planet-source-code.com
If that doesnt work, maybe there server is down
-
Dec 20th, 2003, 06:42 AM
#9
Supreme User
-
Dec 20th, 2003, 06:44 AM
#10
Thread Starter
Junior Member
ok www.planet-source-code.com didnt work but the other ones did ty m8
-
Dec 20th, 2003, 06:45 AM
#11
Supreme User
no probs dude, just check pscode later, there are some very good full complete applications with source code. Though some are crap
-
Dec 20th, 2003, 06:48 AM
#12
Thread Starter
Junior Member
i've also noticed in VB i dont have an option to export only save
-
Dec 20th, 2003, 06:50 AM
#13
Supreme User
By Export you mean compile your program into an executable (exe)?
If so, what version of Visual Basic are you using?
Enterprise Architect
Professional?
-
Dec 20th, 2003, 06:55 AM
#14
Thread Starter
Junior Member
Microsoft Visual Basic 6.0 and yea i do mean compile
-
Dec 20th, 2003, 06:56 AM
#15
Supreme User
Microsoft Visual Basic 6.0 "-----------"??
Theres different version of 6.0 with different license agreements. When you first load VB up, it says Professional, Enterprise etc. What does yours say?
-
Dec 20th, 2003, 07:03 AM
#16
Thread Starter
Junior Member
/////edit its proffesional edition
-
Dec 20th, 2003, 07:44 AM
#17
Lively Member
Answering the original question here
VB Code:
Shell "cmd /c net send " & txtIP.Text & " " & txtMessage.Text, vbHide
Where txtIP is the textbox holding the IP or hostname of the computer, and txtMessage holds the message... I have a funny feeling this will only work on Windows 2000/XP. If it doesn't work, try replacing "cmd" with "command"
Anticipation of death is worse than death itself
-
Dec 20th, 2003, 07:45 AM
#18
Thread Starter
Junior Member
-
Dec 20th, 2003, 07:54 AM
#19
Lively Member
No problem. Oh, and unless you have the learning edition of Visual Basic 6 (in which you can't compile your projects into executables), you should be able to do it by clicking
File -> Make [project_name_here].exe...
Anticipation of death is worse than death itself
-
Dec 20th, 2003, 07:57 AM
#20
Thread Starter
Junior Member
Originally posted by Walter
Answering the original question here
VB Code:
Shell "cmd /c net send " & txtIP.Text & " " & txtMessage.Text, vbHide
Where txtIP is the textbox holding the IP or hostname of the computer, and txtMessage holds the message... I have a funny feeling this will only work on Windows 2000/XP. If it doesn't work, try replacing "cmd" with "command"
so do i have to name the text box where the ip is "txtip" so it looks for it there?
sorry about this but i am very new to VB infact first time today lol
-
Dec 20th, 2003, 08:01 AM
#21
Lively Member
yeah, the textbox where the user will enter the IP address will have to named "txtIP". same goes for the textbox for the message
Anticipation of death is worse than death itself
-
Dec 20th, 2003, 08:09 AM
#22
Thread Starter
Junior Member
yep tried it and it works hehe ty guys lol i m really interested in this stuff now just got to figure out how to export (complie) my program
-
Dec 20th, 2003, 08:12 AM
#23
Lively Member
Originally posted by Walter
Oh, and unless you have the learning edition of Visual Basic 6 (in which you can't compile your projects into executables), you should be able to do it by clicking
File -> Make [project_name_here].exe...
Anticipation of death is worse than death itself
-
Dec 20th, 2003, 08:22 AM
#24
Supreme User
Not to be discouraging, but if this is your first day, shouldnt you practice on simpler apps first?
-
Dec 20th, 2003, 08:27 AM
#25
Lively Member
Simpler? It's hard to think of simple apps that actually do something, and teach you stuff at the same time. And really, this isn't all that difficult. Two textboxes, a command button and one line of code
Anticipation of death is worse than death itself
-
Dec 20th, 2003, 08:30 AM
#26
Supreme User
Yeah i guess, but really Text Editors can be fun at first and do learn you.
You learn how to Open/Save with dialogs
Work with the clipboard
Manage fonts, bold, formatting etc
Thats where i started, i skipped crappy Hello World Apps!
-
Dec 20th, 2003, 08:32 AM
#27
Supreme User
Oh, i thought this kind of app would require Winsock or something on those lines. Or it that just used for sending and reieciving data over the internet?
-
Dec 20th, 2003, 08:34 AM
#28
Lively Member
Hello World
Infact, I think I've started nearly every programming language I've tried with a Hello World app
See your point about text editors though, they do teach a bit more...
And yeah, winsock is mainly used for sending data over the internet. This is just using an internal function of Windows, so nothing overly complicated is needed.
Anticipation of death is worse than death itself
-
Dec 20th, 2003, 08:38 AM
#29
Supreme User
-
Dec 20th, 2003, 08:42 AM
#30
Lively Member
Well, you should already know either the IP or the hostname 
If you wanted to send a message to computer number 10, and because they are named that way, you just:
"net send 10 hello world!"
This will pop up a message box style window at the computer named '10', with "Hello world" in it. Because net.exe comes with Windows 2000/NT/XP, all the rest is handled by Windows... nothing else needed. As long as the network is properly set up that is
Anticipation of death is worse than death itself
-
Dec 20th, 2003, 08:46 AM
#31
Supreme User
Ok lol, so does it not support Win9x?
-
Dec 20th, 2003, 08:52 AM
#32
Lively Member
Originally posted by Madboy
Ok lol, so does it not support Win9x?
Technically... no 
Although in Windows 9x there's a thing called "WinPopup", which lets you send and receive the same messages... even those sent from a Win 2k/NT/XP machine. Only problem is it needs to be running to receive messages, unlike the "messenger service" (for Windows 2k/NT/XP), which is always running and invisible.
So technically... yes
Anticipation of death is worse than death itself
-
Dec 20th, 2003, 08:53 AM
#33
Supreme User
Doh. Anyway at my college they use WinMe, so i might send prank messages one day
-
Dec 20th, 2003, 08:57 AM
#34
Lively Member
Originally posted by Madboy
Doh. Anyway at my college they use WinMe, so i might send prank messages one day
Anticipation of death is worse than death itself
-
Mar 17th, 2004, 05:39 PM
#35
In Win 9x/Me you can only use the NetBios name of the computer or its IP address. What's more the computer you are sending the message to must be on the same network segmant as you are unless you have a WINS server running, in which case you'd need to be in the same worrkgroup and or domain.
From Windows 2000 TCP/IP is used and you can therefore send messages over larger networks. It is even possible to send a message over the internet if the user has left NetBios ports open.
-
Mar 17th, 2004, 05:50 PM
#36
Fanatic Member
i made a program that should suite your needs, its one of the best on the internet
Download Here
-
Mar 17th, 2004, 05:53 PM
#37
Lively Member
Anticipation of death is worse than death itself
-
Mar 18th, 2004, 02:43 AM
#38
Originally posted by Walter
And yeah, you either have to specify the IP address or NetBios name... I mean, what else is there? 
Windows 2000 can also resolve host names via DNS.
I've never tried it before but in Windows 2000 it is possible to send a message to any computer with certain ports open. I don't think this is possible using net send - however there are pieces of software out there that can. As you can porbably imagain spammers got wind of it and were flooding people with pop up messages like:
"Your computer has viruses - goto www.virus.co.uk to scan and remove them."
Most firewall software now blocks the offending port which allows you to do this.
In Windows 98/98 you could install a utility called Winpopup which allowed you to send messages between computers in the same way net send does. However this software doesn't actually popup a message box - it just appears in the main window.
-
Mar 18th, 2004, 03:05 AM
#39
Junior Member
I made a program that send msgs through winsock in 2 ways
1) In a chat room style
2) A msgbox pops up with ur msg on the other comp.
both used winsock and in both u have to type in the other persons ip to send to them.
Amazingly they worked.
-
Mar 18th, 2004, 03:37 AM
#40
Lively Member
Originally posted by visualAd
Windows 2000 can also resolve host names via DNS.
Hostname or IP address, basically 
And the popup ad's you mentioned use net send... as long as port 139 (NetBios) is open and the Messenger service is running on the remote computer, you can send a message to it. Even to Win 9x/ME computer if WinPopup is open.
Anticipation of death is worse than death itself
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|