• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 296
  • Last Modified:

batch File for Windows 7

Using XP computers, we had a bat file to send emergancy messages to our 911 center. The code was:
Echo off
net send computername message
exit

(computername = name to send message to, and message can be any wording)

For windows 7, we tried:
Sent computername "message"

It doesn't work. I've enabled AllowRemoteRPC and it still doesn't work.

Any help would be appreciated.
0
Juneaucounty
Asked:
Juneaucounty
  • 4
  • 2
  • 2
1 Solution
 
JuneaucountyAuthor Commented:
We also run the Sent application before using the bat file in Win7.
0
 
QlemoDeveloperCommented:
There is no replacement of net send for Vista and above. You can try if
  msg /server:Computername * Message
works, but I suppose not, as it is not intended to be used over network (it works for Terminal Servers and on the local machine).

Sadly, the only reliable way to keep such a function is to use 3rd-party software like LAN Messenger (http://lanmsngr.sourceforge.net/), or other communication software.
0
 
McKnifeCommented:
Not quite true, Qlemo. We may use msg.exe like you showed and it works on any client if we
A are admin at the remote machine
B have set the following reg entry at the machines we are trying to contact:
AllowRemoteRPC (dword) below HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server 8has to be set to 1).
0
Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

 
JuneaucountyAuthor Commented:
I installed LAN Messenger and it works in both XP and Windows 7.
What I need to do is make it run a prewritten batch file. Is that possible?

The way this is used: people working alone in remote areas or after hours, may need to call 911. The batch file used in XP had the user's location and a message to send help. In this instance a person wouldn't have time to type anything, but could click the icon to execute the program. The 911 computers are on the same domain as all users.
Thank you.
0
 
QlemoDeveloperCommented:
Don't think so. But you should preconfigure LAN Messenger (account and such).
0
 
McKnifeCommented:
...msg could be used for this as described. Are you still having problems? Remote Admin rights would not be the problem here, just use a scheduled task and give them a shortcut to that task to click on.
0
 
JuneaucountyAuthor Commented:
Found a program called winnosent. It works for XP and Windows 7. Thanks everyone for all of the suggestions.
0
 
JuneaucountyAuthor Commented:
A member of our team found the free Winnosent software, and it works great. Users don't have to be administrators, and it sends a pre-written message to XP and Windows 7 computers.
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 4
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now