{"id":8427,"date":"2014-08-18T05:07:02","date_gmt":"2014-08-17T19:07:02","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=8427"},"modified":"2014-08-18T05:07:02","modified_gmt":"2014-08-17T19:07:02","slug":"windows-command-line-message-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/windows-command-line-message-primer-tutorial\/","title":{"rendered":"Windows Command Line Message Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/VBScript\/index.php\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"Windows Command Line Message Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/VBScript\/Net_Send_Primer-81of.PNG\" id=\"dxadi\" onmouseover=\" var ixqw=document.getElementById('dxadi'); ixqw.src = ixqw.src.replace('.JPG','.png').replace('.PNG','.JPG').replace('.png','.PNG'); \" title=\"Windows Command Line Message Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Windows Command Line Message Primer Tutorial<\/p><\/div>\n<p>With the Windows operating system, in the days of Windows XP, the Messenger service was more &#8220;mainstream&#8221; with the installations of Windows, and accepted or tailorable by firewalls (via <i>firewall.cpl<\/i>) and services (via <i>services.msc<\/i>).  In these times the Command Line command <b><i>NET SEND [ip-address] [message]<\/i><\/b> could be used (quite often joyously by students) to send messages to other PCs on the same network (especially if [ip-address] is <i>broadcast<\/i> via the <i>*<\/i> usage).<\/p>\n<p>It may be that if you have a Windows from Windows Vista on, you may not have this command available or even configurable.   If you have a chance of doing it you&#8217;d want to see a service called &#8220;Messenger&#8221; defined after you go <i>services.msc<\/i> &#8230; and if it isn&#8217;t started you&#8217;d need to start it, if your firewall (via <i>firewall.cpl<\/i>) settings allow.   A command line command, that may work for you, that would do this, too, is <i>NET START Messenger<\/i><\/p>\n<p>Can we say this is like email from the Windows (DOS) Command Line &#8230; perhaps not &#8230; but if put into batch files could be made to be a bit like <a target=_blank href='http:\/\/en.wikipedia.org\/wiki\/Online_chat' title='Chat information from Wikipedia ... thanks'><i>chat<\/i><a>.  The older among us may have fond memories of VAX\/VMS&#8217;s <i>phone<\/i> command (read about variants <a target=_blank title='As you type chat' href='http:\/\/ask.metafilter.com\/70619\/Asyoutype-chat'>here<\/a> &#8230; ah, for the days of <a target=_blank href='http:\/\/en.wikipedia.org\/wiki\/Punched_card' title='Hollerith cards'>card punching and hoppers<\/a> (one wrong move and it was 30 minutes back to the end of the queue)) &#8230; all the operating systems allowed messaging from the command line then &#8230; and it was a lot of fun, as <i>chat<\/i> is now.<\/p>\n<p>Here are some Windows command line commands that come in handy for today&#8217;s work:<\/p>\n<ul>\n<li><a target=_blank href='http:\/\/www.computerhope.com\/nethlp.htm' title='NET SEND [ip-address] [message]'>NET SEND [ip-address] [message]<\/a><\/li>\n<li><a target=_blank href='http:\/\/www.computerhope.com\/forum\/index.php?topic=26861.0' title='SERVICES.msc'>SERVICES.msc<\/a><\/li>\n<li><a target=_blank href='http:\/\/www.computerhope.com\/forum\/index.php?topic=26861.0' title='FIREWALL.cpl'>FIREWALL.cpl<\/a><\/li>\n<li><a target=_blank href='http:\/\/www.computerhope.com\/ipconfig.htm' title='IPCONFIG \/all'>IPCONFIG \/all<\/a><\/li>\n<li><a target=_blank href='http:\/\/www.computerhope.com\/nethlp.htm' title='NET START Messenger'>NET START Messenger<\/a><\/li>\n<li><a target=_blank href='http:\/\/www.computerhope.com\/nethlp.htm' title='NET STOP Messenger'>NET STOP Messenger<\/a><\/li>\n<\/ul>\n<p>Anyway, even for the sake of history (when does &#8220;history&#8221; start?) &#8230; have a peek at today&#8217;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/VBScript\/index.php\">tutorial<\/a> performed on an old Windows XP (now obsolete) desktop PC.<\/p>\n<p>We hope you enjoy this tutorial (using VBScript, as first mentioned here at this blog with <a href='#vpt' title='VBScript Primer Tutorial'>VBScript Primer Tutorial<\/a> as shown below) as a <a target=_blank title='Live run'  href=\"http:\/\/www.rjmprogramming.com.au\/VBScript\/netsendtest.html\">live run<\/a> (based on VBScript programming source code <a target=_blank title='netsendtest.html'  href=\"http:\/\/www.rjmprogramming.com.au\/VBScript\/netsendtest.html_GETME\">netsendtest.html<\/a>) which will not work for you unless you use an Internet Explorer browser and NET SEND works for you because you have the Messenger service running, and your firewall settings allow it.<\/p>\n<p>Will leave you with a very informative web page regarding this topic, <a target=_blank title='Good tutorial' href='http:\/\/www.osix.net\/modules\/article\/?id=675'>here<\/a> &#8230; thanks &#8230; the VBScript idea (and lots of the source) came from here.   One modern software suite of interest in this area is <a target=_blank title='Skype' href='http:\/\/www.skype.com\/'>Skype<\/a>.<\/p>\n<hr \/>\n<p id='vpt'>Previous relevant <a target=_blank href='?p=1262' title='VBScript Primer Tutorial'>VBScript Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/VBScript\/\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"VBScript Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/VBScript\/VBScript_Primer-2of.jpg\" title=\"VBScript Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">VBScript Primer Tutorial<\/p><\/div>\n<p>Here is a tutorial that introduces you to some aspects of VBScript.<\/p>\n<blockquote><p>VBScript (Visual Basic Scripting Edition) is an Active Scripting language developed by Microsoft that is modeled on Visual Basic. It is designed as a \u201clightweight\u201d language with a fast interpreter for use in a wide variety of Microsoft environments. VBScript uses the Component Object Model to access elements of the environment within which it is running; for example, the FileSystemObject (FSO) is used to create, read, update and delete files.<\/p>\n<p>VBScript has been installed by default in every desktop release of Microsoft Windows since Windows 98;[1] in Windows Server since Windows NT 4.0 Option Pack;[2] and optionally with Windows CE (depending on the device it is installed on).<\/p>\n<p>A VBScript script must be executed within a host environment, of which there are several provided with Microsoft Windows, including: Windows Script Host (WSH), Internet Explorer (IE), and Internet Information Services (IIS).[3] Additionally, the VBScript hosting environment is embeddable in other programs, through technologies such as the Microsoft Script Control (msscript.ocx).<\/p><\/blockquote>\n<p>I&#8217;ve been curious about VBScript, but have not used it extensively, mainly because cross-browser incompatible code makes me a bit disinterested.   However, the Visual Basic functionality and popularity of Internet Explorer, as a browser, means ignorance is not necessarily bliss.   It can be used as an alternative client side tool, like Javascript, but only for Internet Explorer.   It takes most of its functionality from Visual Basic, but is not VBA, nor is it Camembert &#8230; you might be pleased to know.<\/p>\n<p>Let&#8217;s see some simple <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/VBScript\/'>VBScript<\/a> in action for good old Hello World and showing the current date and time, but not for making toast without you asking in the morning, even though you wanted a chico roll &#8230;<\/p>\n<p>Test drive the tutorial, but do not expect much unless you are using Internet Explorer <a target=_blank title='VBScript idea' href='http:\/\/www.rjmprogramming.com.au\/VBScript\/My_VBScript.html'>here<\/a>.   If you are not using Internet Explorer, and see Hello World, get out the patent book, and fill in the &#8220;Walking on Water&#8221; section.<\/p>\n<p>Link to VBScript information &#8230; <a target=_blank title='VBScript information' href='http:\/\/en.wikipedia.org\/wiki\/VBScript'>from Wikipedia from which quote above comes<\/a>.<br \/>\nLink to VBScript tutorials &#8230; <a target=_blank title='VBScript tutorials' href='http:\/\/www.w3schools.com\/vbscript\/'> at W3Schools<\/a> (the source of this tutorial&#8217;s workings &#8230; thanks, as always).<br \/>\nLink to VBScript &#8220;spiritual home&#8221; &#8230; <a target=_blank title='VBScript tutorials' href='http:\/\/msdn.microsoft.com\/en-us\/library\/t0aew7h6%28v=vs.84%29.aspx'> at Microsoft<\/a>.<br \/>\nLink to some downloadable VBScript code &#8230; rename to <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/VBScript\/My_VBScript.html_GETME' title='Download me'>My_VBScript.html<\/a> for useful use only with Internet Explorer.<br \/>\nLink to some downloadable VBScript programming code &#8230; rename to <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/VBScript\/My_VBScript.php_GETME' title='Download me'>My_VBScript.php<\/a> for useful use only with Internet Explorer.<\/p>\n<p>Favourite V<a target=_blank href='https:\/\/www.youtube.com\/watch?v=9-k5J4RxQdE' title=\"Overture, curtains, lights,&#013;This is it, the night of nights&#013;No more rehearsing and nursing a part&#013;We know every part by heart&#013;Overture, curtains, lights&#013;This is it, you'll hit the heights&#013;And oh what heights we'll hit&#013;On with the show this is it&#013;&#013;Tonight what heights we'll hit&#013;On with the show this is it&#013;\">VBScript<\/a>?!\n<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d1262' onclick='var dv=document.getElementById(\"d1262\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?s=Javascript\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d1262' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr \/>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d8427' onclick='var dv=document.getElementById(\"d8427\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=Windows\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d8427' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>With the Windows operating system, in the days of Windows XP, the Messenger service was more &#8220;mainstream&#8221; with the installations of Windows, and accepted or tailorable by firewalls (via firewall.cpl) and services (via services.msc). In these times the Command Line &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/windows-command-line-message-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,25,29,37],"tags":[58,200,234,622,775,831,997,1148,1319,1365,1435],"class_list":["post-8427","post","type-post","status-publish","format-standard","hentry","category-elearning","category-networking","category-operating-system","category-tutorials","tag-activex","tag-chat","tag-command-line","tag-internet-explorer","tag-messaging","tag-net-send","tag-programming","tag-skype","tag-tutorial","tag-vbscript","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/8427"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=8427"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/8427\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=8427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=8427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=8427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}