Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Net send/msdos Prompt 2

Status
Not open for further replies.

Matilde

Programmer
Nov 30, 2001
18
DK
How do I open a msdos prompt window in the background so the user can't see it and how do I run net send in it?
 
Try:
Set oShell = WScript.CreateObject("WScript.Shell")
oShell.Run "command /C net send PC Que Pasa Amigo",0,True
Jon Hawkins
 
Where do you get all the information on the commandoes. ex. how do you know that you have to write 0 and true?
 
Usually within Dos you can type the command with a /? after it. I can't test it out with net send as it appears not to be available in my version of DOS , but in principle it would be
net send /?

or possibly even
net /?


 
I realized that when you net send somebody, they can recieve a maximum of 6 messages. Is there any way to increase this number of maximum messages recievable?

Mr. Magoo
 
I'm aware of no such limitation. Would you mind sharing what lead you to "realize" this?

Paste the following into a file named message.bat.

net send %1 "Good Morning."
net send %1 "And"
net send %1 "Just"
net send %1 "in"
net send %1 "case"
net send %1 "I"
net send %1 "dont"
net send %1 "see"
net send %1 "you"
net send %1 "again,"
net send %1 "Good"
net send %1 "Afternoon,"
net send %1 "Good"
net send %1 "Evening,"
net send %1 "and"
net send %1 "Good"
net send %1 "Night!"

Then from the command line, call it like so:

message.bat YourUser Jon Hawkins
 
I realized this when i created a batch script that loops the net send command 20 times and then stops. Only 6 get through though and then thats it! This is when i became aware of that limitation.
 
Set oShell = WScript.CreateObject("WScript.Shell")
oShell.Run "command /C net send PC Que Pasa Amigo",0,True

in asp

Set oShell = SERVER.CreateObject("WScript.Shell")
oShell.Run "command /C net send PC Que Pasa Amigo",0,True

NOTE THE "SERVER"

You can't use Wscript to create WScript object
 
This may be a late post but it seems I don't have such limitation(XP)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top