[译]NetSend Plus(.NET/C#)
By robot-v1.0
本文链接 https://www.kyfws.com/applications/the-netsend-plus-net-c-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 8 分钟阅读 - 3533 个词 阅读量 0[译]NetSend Plus(.NET/C#)
原文地址:https://www.codeproject.com/Articles/9466/The-NetSend-Plus-NET-C
原文作者:Nirosh
译文由本站 robot-v1.0 翻译
前言
The "NetSend Plus" is a simple yet a powerful tool, which enables you to send windows popup messages over the network.
" NetSend Plus"是一个简单而强大的工具,使您可以通过网络发送Windows弹出消息.
介绍(Introduction)
" NetSend Plus"是一个简单而强大的工具,使您可以通过网络发送Windows弹出消息.这项工作与窗户合作"(The “NetSend Plus” is a simple yet a powerful tool, which enables you to send windows popup messages over the network. This work in cooperate with the windows “)NetApi.dll(NetApi.dll)",因此它可以完成” net send"命令的所有工作,此外,我还添加了一些其他功能,这些功能也非常有用." NetSend Plus"提供了几乎在任何Net Send应用程序中都能找到的所有功能让我们对产品进行深入的了解.(", therefore it can do all what “net send” command can do, additionally I have added some other set of features, which are quite useful as well. The “NetSend Plus” provides almost all the features you find in any Net Send application available. Let’s go through the product to have a better understanding.)
背景(Background)
我想,你们所有人都使用过" Net Send"命令来发送消息.但是,使用此工具(漂亮的皮肤),将点放在用于发送弹出消息的黑色丑陋命令提示符屏幕上.我知道记住所有同事的IP地址/机器名称是多么困难,但是使用此工具,您可以使用所有熟悉的名称重命名好友列表.因此,使用此工具,一切都会变得更容易.(I think, you all have used “Net Send” command to send messages. But with this tool, the nice skin, put dot to the black ugly command prompt screen you used to send popup messages. I know how difficult it is to remember IP address/ machine name of all your colleagues but with this tool, you can rename your buddy list with all the familiar names. So with this tool every thing is easier..)
系统要求(System Requirements)
- Windows 98,Window 2000,XP,NT,2003.(Windows 98, Window 2000, XP, NT, 2003.)
- 至少32 MB的内存.(At least 32 MB of memory.)
- 至少333 MHz的处理器速度.(At least 333 MHz of processor speed.)
- Microsoft .NET Framework 1.0/1.1(Microsoft .NET Framework 1.0/1.1)
" NetSend Plus"的核心功能.(The Core Features of “NetSend Plus”.)
- 自动检测并加载局域网计算机列表(好友列表).(Automatically detects and loads LAN computer list (buddy list).)
- 好友列表附加功能使您可以指定多个域名并添加好友列表.(Buddy list appending feature enables you to give several domain names and add buddy lists.)
- 用好记的名字重命名每个伙伴.(Rename each buddy with a friendly name.)
- 从列表中删除选定的伙伴/伙伴.(Delete selected buddies/buddy from the list.)
- 使用换行符等格式化消息(Formatting your messages with line feeds etc.)
- 同时向多个用户发送消息.(Sending messages to multiple users at the same time.)
- 将新的计算机/好友添加到您的好友列表.(Add new computers/ buddies to your buddy list.)
- 安排消息,因此它将在计划的时间自动发送.(Scheduling messages, so then it will send automatically at the scheduled time.)
- 消息日志功能.(Message log feature.)
- 留言板.(Message board.)
- 保存好友列表.(Saving the buddy list.)
- 友善的皮肤.(Nice friendly skin.)
自动检测并加载局域网计算机列表(好友列表).(Automatically detects and loads LAN computer list (buddy list).)
该应用程序会自动检测并加载您网络中的计算机,从而使用户无需按照以下几种格式填充文本/XML文件.在大多数情况下,您不必提供密码,但是最好提供一个密码.域名和用户名由系统本身自动检测,请注意您的LAN中没有太多的域/工作组.但是,如果您的LAN系统中有多个域/工作组,则可能需要网络管理员提供一些帮助,以将所有域/工作组名称一个接一个地添加,并将其子机添加到net send应用程序中.请点击"?“标记以在每个项目控件上获得更多帮助.这是一个示例窗口,目前已自动检测到我的LAN域和用户名.在单击"确定"之前,请检查检测到的数据的有效性.(The application automatically detects and loads the computers in your network so that, the user doesn’t need to fill text/ XML file following several formats. Most of the time you don’t have to give a password but it is always better to give one. The domain name and user name are automatically detected by the system itself, noting that you don’t have many domain/workgroup within your LAN. But if you have multiple domain/workgroup in your LAN system you may need to get some assistance from your Network Admin to add all the domains/workgroups names one after the other and add their sub machines to the net send application. Please click on the “?” mark to have more help on each item control. This is a sample window, which has detected for this time, my LAN domain and user name automatically. Please check for the validity of the detected data before click on OK.)
右键单击大空白区域»选择"加载计算机列表” »将数据添加到"网络数据"窗口»单击"确定".(Right click on the big white area » Select Load Computer List » Add Data to the “Net Data” window » Click OK.)
好友列表附加功能,您可以指定多个域名并添加好友列表.(Buddy list appending feature, you can give several domain names and add buddy lists.)
这将帮助您附加属于另一个域/工作组的另一台计算机列表.(This will help you to append another computer list which belongs to another domain/ workgroup.)
右键单击大空白区域»选择"加载计算机列表" »将数据添加到"网络数据"窗口»单击"确定".(Right click on the big white area » Select Load Computer List » Add Data to the “Net Data” window » Click OK.)
用好记的名字重命名每个伙伴.(Rename each buddy with a friendly name.)
重命名特定的计算机,以便您可以使用一些有意义的名称.但是,如果通过右键单击好友列表页面手动添加新计算机,则可能需要先保存一次计算机列表,然后才能更改名称.在下一版本中,您将不必这样做.(Rename a particular computer so that you can have some meaningful name. But if you add a new computer manually by right clicking on the buddy list page, you may need to save the computer list once before changing the name. In the next version, you will not have to do this.)
右键单击好友»选择"重命名计算机".(Right click on a buddy » Select Rename Computer.)
从列表中删除选定的伙伴/伙伴.(Delete selected buddies/buddy from the list.)
右键单击选定的一个或多个伙伴»选择"删除计算机".(Right click on the selected buddy/ buddies » Select Delete Computer.)
使用换行符等格式化消息(Formatting your messages with line feeds etc.)
该消息将识别换行符,以便您可以创建一些有意义的完整消息,例如添加消息标题和签名等.(The message will recognize the line feed so that, you can create some meaning full messages, such as adding message header and signature etc…)
同时向多个用户发送消息.(Sending messages to multiple users at the same time.)
从伙伴列表中选择计算机/伙伴,然后单击"选择"按钮,它将把计算机列表添加到选定的计算机列表框中(即使您可以将这些选定的计算机拖放到选定的计算机列表框中).之后,只需键入您想要的消息,然后单击"发送"即可.这会将消息顺序发送到列表中的所有好友.(Select computers/Buddies from the buddy list and then click on Select button, it will add the computer list to the selected computer list box (even you can drag these selected computers and drop them on the selected computer list box). After that just type the message you want and click on Send. This will send the message to all the buddies in your list sequentially.)
将新的计算机/伙伴添加到您的好友列表.(Add new computers/buddies to your buddy list.)
只需右键单击鼠标即可手动添加新计算机.因此,它将添加一个名为"新计算机"的新伙伴,您可以在其中编辑并提供有意义的名称(注意:该名称应该是您域中计算机的有效名称).例如,只需添加名称为" *“的计算机,然后将其保存,然后关闭应用程序,然后将应用程序重新加载后,将名称更改为” All"之类的名称. (大家都知道,当您在DOS提示符下使用Net Send命令时,会将消息发送到所有连接的计算机.)(Add new computers manually just by right click on your mouse. So then it will add a new buddy with the name “New Computer” where you can edit and give a meaningful name (Note: The name should be a valid name of a computer in your domain). As an example, just add a computer with the name “”, then save it and then close the application and change the name to some thing like “All” after loading the application back. (You all know that * will send the message to all connected computers, when you use Net Send command at DOS prompt.))
右键单击好友列表»选择添加新计算机.(Right Click on the Buddy List » Select Add New Computer.)
安排消息,因此它将在计划的时间自动发送.(Scheduling messages, so then it will send automatically at the scheduled time.)
首先,您必须键入您的消息,然后需要将一些好友添加到发件人列表中.现在您可以安排消息了.(First you have to type your message, and then you need to add some buddies to the sender list. Now you are ready to schedule your message.)
单击"时间表"按钮»填写时间字段.(Click on “Schedule” button » Fill the time field.)
**注意:(Note:)**在看到用于调度系统的背后,使用" at" DOS命令.(Behind the seen for scheduling the system, use “at” DOS command.)
消息日志功能.(Message log feature.)
您可以看到消息日志,这基本上将提供有关单个消息/收件人的报告.(You can see the message log and that will basically give a report on individual message/receiver.)
单击"查看消息日志"按钮.(Click off the “View Message Log” button.)
保存好友列表.(Saving the buddy list.)
这很重要,当您添加新伙伴时,需要保存它们以备后用.(This is important, when you add new buddies you need to save them for later use.)
兴趣点(Point of Interest)
为了您的利益,我还添加了此工具的源代码.(For your benefit I have added the source code of this tool as well.)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
C# C++ .NET1.1 Win2K WinXP Win2003 .NET1.0 Visual-Studio VS.NET2003 Dev 新闻 翻译