Solved

batch File for Windows 7

Posted on 2013-05-16
8
284 Views
Last Modified: 2013-06-08
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
Comment
Question by:Juneaucounty
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 

Author Comment

by:Juneaucounty
ID: 39171853
We also run the Sent application before using the bat file in Win7.
0
 
LVL 70

Expert Comment

by:Qlemo
ID: 39171888
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
 
LVL 54

Expert Comment

by:McKnife
ID: 39172778
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
SendBlaster Pro 4 - Bulk Email Sending Software

SendBlaster 4 Pro - Best Bulk Emailing Sending Software
Automatic Subscribe / Unsubscribe Processing
Great for Newsletters & Mass Mailings
Optional HTML & Text Composition
Integration with Google Features
Built in Spam Score Checking
Free Professional Templates - Feature Packed!

 

Author Comment

by:Juneaucounty
ID: 39182250
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
 
LVL 70

Expert Comment

by:Qlemo
ID: 39182786
Don't think so. But you should preconfigure LAN Messenger (account and such).
0
 
LVL 54

Expert Comment

by:McKnife
ID: 39182842
...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
 

Accepted Solution

by:
Juneaucounty earned 0 total points
ID: 39217313
Found a program called winnosent. It works for XP and Windows 7. Thanks everyone for all of the suggestions.
0
 

Author Closing Comment

by:Juneaucounty
ID: 39231356
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

Increase your protection from Zero Day threats!

Running two Antivirus' is never a good idea.
Taking advantage of Multiple Security layers on the other hand can often save your hide.
See which top notch security software brands have been proven to happily coexist together.
Reduce your chances of becoming a statistic.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question