<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Windows Scripting Forums - All Forums]]></title>
		<link>http://www.windowsscript.com/forums/</link>
		<description><![CDATA[Windows Scripting Forums - http://www.windowsscript.com/forums]]></description>
		<pubDate>Thu, 09 Sep 2010 12:31:34 -0700</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Answer &#8220;No to All&#8221; When Copying Files in Windows XP]]></title>
			<link>http://www.windowsscript.com/forums/Thread-Answer-8220-No-to-All-8221-When-Copying-Files-in-Windows-XP</link>
			<pubDate>Wed, 14 Jul 2010 23:03:09 -0700</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-Answer-8220-No-to-All-8221-When-Copying-Files-in-Windows-XP</guid>
			<description><![CDATA[<p>If you&#8217;ve ever copied one directory of files over another, you&#8217;re probably pretty aware that Windows gives you an option to respond Yes To All when file conflicts arise.  But what if you don&#8217;t want to overwrite the files?  Windows Vista and Windows 7 were gracious enough to allow you to repeat your selected action on future conflicts but Windows XP wasn&#8217;t.  Or was it? <a href="http://www.nilpo.com/2010/07/windows-xp/answer-no-to-all-when-copying-files-in-windows-xp/#more-118" class="more-link">(more&#8230;)</a></p>
<br />
<br />
<br />
<br />
Posted on Thu, 15 Jul 2010 05:01:34 +0000 at <a href="http://www.nilpo.com/2010/07/windows-xp/answer-no-to-all-when-copying-files-in-windows-xp/" target="_blank">http://www.nilpo.com/2010/07/windows-xp/...indows-xp/</a><br />
Comments: <a href="http://www.nilpo.com/2010/07/windows-xp/answer-no-to-all-when-copying-files-in-windows-xp/#comments" target="_blank">http://www.nilpo.com/2010/07/windows-xp/.../#comments</a>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever copied one directory of files over another, you&#8217;re probably pretty aware that Windows gives you an option to respond Yes To All when file conflicts arise.  But what if you don&#8217;t want to overwrite the files?  Windows Vista and Windows 7 were gracious enough to allow you to repeat your selected action on future conflicts but Windows XP wasn&#8217;t.  Or was it? <a href="http://www.nilpo.com/2010/07/windows-xp/answer-no-to-all-when-copying-files-in-windows-xp/#more-118" class="more-link">(more&#8230;)</a></p>
<br />
<br />
<br />
<br />
Posted on Thu, 15 Jul 2010 05:01:34 +0000 at <a href="http://www.nilpo.com/2010/07/windows-xp/answer-no-to-all-when-copying-files-in-windows-xp/" target="_blank">http://www.nilpo.com/2010/07/windows-xp/...indows-xp/</a><br />
Comments: <a href="http://www.nilpo.com/2010/07/windows-xp/answer-no-to-all-when-copying-files-in-windows-xp/#comments" target="_blank">http://www.nilpo.com/2010/07/windows-xp/.../#comments</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Twitter Updates for 2010-07-10]]></title>
			<link>http://www.windowsscript.com/forums/Thread-Twitter-Updates-for-2010-07-10</link>
			<pubDate>Sat, 10 Jul 2010 22:53:49 -0700</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-Twitter-Updates-for-2010-07-10</guid>
			<description><![CDATA[<ul>
<li>Reading: We Can Know! May 21, 2011 is Judgment Day <a href="http://bit.ly/adl71K" rel="nofollow"><a href="http://bit.ly/adl71K" target="_blank">http://bit.ly/adl71K</a></a> by @<a rel="nofollow" href="http://twitter.com/WeCanKnow">WeCanKnow</a>]]></description>
			<content:encoded><![CDATA[<ul>
<li>Reading: We Can Know! May 21, 2011 is Judgment Day <a href="http://bit.ly/adl71K" rel="nofollow"><a href="http://bit.ly/adl71K" target="_blank">http://bit.ly/adl71K</a></a> by @<a rel="nofollow" href="http://twitter.com/WeCanKnow">WeCanKnow</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[I have a complaint.  No, a suggestion!]]></title>
			<link>http://www.windowsscript.com/forums/Thread-I-have-a-complaint-No-a-suggestion</link>
			<pubDate>Thu, 08 Jul 2010 07:36:57 -0700</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-I-have-a-complaint-No-a-suggestion</guid>
			<description><![CDATA[Sure, we'll call it a <span style="font-style: italic;">suggestion</span>:  this forum runs the usual BBCode rules, right?  It would be nice to have some sort of interface or easily accessible list of valid codes.<br />
<br />
I mean, I have a BBCode plugin for my browser that helps a little, but things like <span style="font-size: 24pt;">size</span> and color aren't covered there, and I can't for the life of me remember the valid <span style="color: #660000;">color</span> codes (call me spoiled for being used to an advanced user panel)<br />
<br />
Okay, I lied, size and color are in there...   <img src="http://www.windowsscript.com/forums/images/smilies/tongue.gif" style="vertical-align: middle;" border="0" alt="Tongue" title="Tongue" /><br />
<br />
Oh, and it would be nice if I didn't have to scroll down to hit the 'Post Thread' button.]]></description>
			<content:encoded><![CDATA[Sure, we'll call it a <span style="font-style: italic;">suggestion</span>:  this forum runs the usual BBCode rules, right?  It would be nice to have some sort of interface or easily accessible list of valid codes.<br />
<br />
I mean, I have a BBCode plugin for my browser that helps a little, but things like <span style="font-size: 24pt;">size</span> and color aren't covered there, and I can't for the life of me remember the valid <span style="color: #660000;">color</span> codes (call me spoiled for being used to an advanced user panel)<br />
<br />
Okay, I lied, size and color are in there...   <img src="http://www.windowsscript.com/forums/images/smilies/tongue.gif" style="vertical-align: middle;" border="0" alt="Tongue" title="Tongue" /><br />
<br />
Oh, and it would be nice if I didn't have to scroll down to hit the 'Post Thread' button.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[When's the party?]]></title>
			<link>http://www.windowsscript.com/forums/Thread-When-s-the-party</link>
			<pubDate>Thu, 08 Jul 2010 07:28:57 -0700</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-When-s-the-party</guid>
			<description><![CDATA[So, anything going to happen in here anytime soon?  <img src="http://www.windowsscript.com/forums/images/smilies/tongue.gif" style="vertical-align: middle;" border="0" alt="Tongue" title="Tongue" />]]></description>
			<content:encoded><![CDATA[So, anything going to happen in here anytime soon?  <img src="http://www.windowsscript.com/forums/images/smilies/tongue.gif" style="vertical-align: middle;" border="0" alt="Tongue" title="Tongue" />]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Looking for guidance in designing a component maintenance tracking DB: OOoBase]]></title>
			<link>http://www.windowsscript.com/forums/Thread-Looking-for-guidance-in-designing-a-component-maintenance-tracking-DB-OOoBase</link>
			<pubDate>Wed, 07 Jul 2010 11:15:12 -0700</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-Looking-for-guidance-in-designing-a-component-maintenance-tracking-DB-OOoBase</guid>
			<description><![CDATA[I have discussions <a href="http://www.devhardware.com/forums/programming-82/database-questions-oobase-hsql-table-creation-305235.html" target="_blank">here</a>, <a href="http://forums.aspfree.com/sql-development-6/question-building-a-database-open-office-base-table-creation-etc-357438.html" target="_blank">here</a> and <a href="http://www.developerbarn.com/database-design-help/2126-looking-guidance-designing-component-maintenance-tracking-db-ooobase.html" target="_blank">here</a>.<br />
<br />
What I <span style="font-style: italic;">want</span> to do is build a tracking database for an item I repair at work:  an aircraft navigational receiver.  There are currently some 19 service bulletins issued by the manufacturer for this unit which address specific issues which have been discovered to be problems or for adding new capability to the units operation.<br />
<br />
A few of these SBs modify the part number of the unit, so I may want to add some constraints later on for data validation purposes.<br />
<br />
Nearly all the SBs are recommended but not mandatory.  However, my employer has recently decided that one particular SB <span style="font-style: italic;">must</span> be installed, and they are giving me a hard time because I can't tell them how many of the 500 or so units we have in our system need to be modified.  Can you imagine how time- and labor-consuming it is to look into the belly of every jet of a regional airline to see if its NAV receivers have a little teeny square on its data plate marked out?<br />
<br />
Anyway, in an effort to prevent this kind of informational gap from occurring again, I want to track the units by part number and serial number (even though they are all the same basic unit, I can't guarantee that there aren't two different part-number models out there with the same serial number), list the service bulletins installed on each, along with part numbers and revision numbers of each of the six major sub-assemblies.  While I am at it, I can also track the Work Orders the units come in on for repair, what I found wrong with them, and what I did to repair them as well as other repairs and maintenance I performed before reissuing them out to the fleet.<br />
<br />
That way, when the boss asks me for high-failure items, or how often a unit can go between alignments, I will be able to issue somewhat accurate statistics.<br />
<br />
Since I use Ubuntu almost exclusively, then my choice of DB app defaults to Open Office.org BASE, which runs on HSQL, apparently.<br />
<br />
I have a script which I wrote to create the tables I think I need, and I am currently thinking about the forms I need to build, but there are still a few issues I have to work out-- what's the best way to track the configuration of each unit (identified by a composite key of unit P/N and S/N)?<br />
<br />
I've thought about using a separate table with the service bulletins (as boolean entities) and indexed with a unique integer primary, but then how would I ensure each index number associates with a unique set of boolean values?<br />
<br />
I thought the most efficient way would be to have a binary-coded hexdecimal number to identify which services bulleting were applied to a unit, but I have no idea how to encode and decode the information through a form (the user would check the appropriate checkboxes and the coded number would be automagically applied to the database and vice-versa).<br />
<br />
I have attached a rough UML I drew up in DIA Diagram Editor.<br />
<br />
I have also attached the SQL script I used to create the latest iteration of my database, but I have done something wrong, I think-- the linking tables aren't updating for me and I have no idea what I need to do to get them to work, nor if there shouldn't be some different way of tracking the data.]]></description>
			<content:encoded><![CDATA[I have discussions <a href="http://www.devhardware.com/forums/programming-82/database-questions-oobase-hsql-table-creation-305235.html" target="_blank">here</a>, <a href="http://forums.aspfree.com/sql-development-6/question-building-a-database-open-office-base-table-creation-etc-357438.html" target="_blank">here</a> and <a href="http://www.developerbarn.com/database-design-help/2126-looking-guidance-designing-component-maintenance-tracking-db-ooobase.html" target="_blank">here</a>.<br />
<br />
What I <span style="font-style: italic;">want</span> to do is build a tracking database for an item I repair at work:  an aircraft navigational receiver.  There are currently some 19 service bulletins issued by the manufacturer for this unit which address specific issues which have been discovered to be problems or for adding new capability to the units operation.<br />
<br />
A few of these SBs modify the part number of the unit, so I may want to add some constraints later on for data validation purposes.<br />
<br />
Nearly all the SBs are recommended but not mandatory.  However, my employer has recently decided that one particular SB <span style="font-style: italic;">must</span> be installed, and they are giving me a hard time because I can't tell them how many of the 500 or so units we have in our system need to be modified.  Can you imagine how time- and labor-consuming it is to look into the belly of every jet of a regional airline to see if its NAV receivers have a little teeny square on its data plate marked out?<br />
<br />
Anyway, in an effort to prevent this kind of informational gap from occurring again, I want to track the units by part number and serial number (even though they are all the same basic unit, I can't guarantee that there aren't two different part-number models out there with the same serial number), list the service bulletins installed on each, along with part numbers and revision numbers of each of the six major sub-assemblies.  While I am at it, I can also track the Work Orders the units come in on for repair, what I found wrong with them, and what I did to repair them as well as other repairs and maintenance I performed before reissuing them out to the fleet.<br />
<br />
That way, when the boss asks me for high-failure items, or how often a unit can go between alignments, I will be able to issue somewhat accurate statistics.<br />
<br />
Since I use Ubuntu almost exclusively, then my choice of DB app defaults to Open Office.org BASE, which runs on HSQL, apparently.<br />
<br />
I have a script which I wrote to create the tables I think I need, and I am currently thinking about the forms I need to build, but there are still a few issues I have to work out-- what's the best way to track the configuration of each unit (identified by a composite key of unit P/N and S/N)?<br />
<br />
I've thought about using a separate table with the service bulletins (as boolean entities) and indexed with a unique integer primary, but then how would I ensure each index number associates with a unique set of boolean values?<br />
<br />
I thought the most efficient way would be to have a binary-coded hexdecimal number to identify which services bulleting were applied to a unit, but I have no idea how to encode and decode the information through a form (the user would check the appropriate checkboxes and the coded number would be automagically applied to the database and vice-versa).<br />
<br />
I have attached a rough UML I drew up in DIA Diagram Editor.<br />
<br />
I have also attached the SQL script I used to create the latest iteration of my database, but I have done something wrong, I think-- the linking tables aren't updating for me and I have no idea what I need to do to get them to work, nor if there shouldn't be some different way of tracking the data.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[HELP: Script for checking sp level in Win 2000/2003 Servers]]></title>
			<link>http://www.windowsscript.com/forums/Thread-HELP-Script-for-checking-sp-level-in-Win-2000-2003-Servers</link>
			<pubDate>Mon, 28 Jun 2010 03:35:38 -0700</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-HELP-Script-for-checking-sp-level-in-Win-2000-2003-Servers</guid>
			<description><![CDATA[Hi Script Guru,<br />
<br />
I need a help for writing a script for finding the service pack installed on a windows 2000 / 2003 server. The condition is I have multiple servers say around 800 servers. Few have Service pack 1 and others have Service pack 2. I need to separate a list of servers which has Sp1 and Sp2. I don't want to login to each server for finding this information.<br />
<br />
I have a script for pinging multiple servers. Where I place the computer names in a text file and fetch the computer name in the script and separate the servers which ping in text file 1 and which do not ping in text file 2. ( I have posted this script in another thread under this section)<br />
<br />
Also I found your idea of using the below script for finding the sp level<br />
<br />
WScript.Echo strOSLongName, strSPLongName<br />
WScript.Echo "Version:", strOSVersion<br />
WScript.Echo "Build:", intBuild<br />
WScript.Echo "Service Pack Level:", intSPMajorVersion<br />
WScript.Echo "SP Version:", strSPVersion <br />
<br />
Its confusing for me in using the above script.<br />
<br />
Can you please post a script that fulfill my requirements?<br />
This might be useful for others too <a href="http://www.windowsscript.com/forums/images/smilies/smile.gif" target="_blank">http://www.windowsscript.com/forums/imag.../smile.gif</a>]]></description>
			<content:encoded><![CDATA[Hi Script Guru,<br />
<br />
I need a help for writing a script for finding the service pack installed on a windows 2000 / 2003 server. The condition is I have multiple servers say around 800 servers. Few have Service pack 1 and others have Service pack 2. I need to separate a list of servers which has Sp1 and Sp2. I don't want to login to each server for finding this information.<br />
<br />
I have a script for pinging multiple servers. Where I place the computer names in a text file and fetch the computer name in the script and separate the servers which ping in text file 1 and which do not ping in text file 2. ( I have posted this script in another thread under this section)<br />
<br />
Also I found your idea of using the below script for finding the sp level<br />
<br />
WScript.Echo strOSLongName, strSPLongName<br />
WScript.Echo "Version:", strOSVersion<br />
WScript.Echo "Build:", intBuild<br />
WScript.Echo "Service Pack Level:", intSPMajorVersion<br />
WScript.Echo "SP Version:", strSPVersion <br />
<br />
Its confusing for me in using the above script.<br />
<br />
Can you please post a script that fulfill my requirements?<br />
This might be useful for others too <a href="http://www.windowsscript.com/forums/images/smilies/smile.gif" target="_blank">http://www.windowsscript.com/forums/imag.../smile.gif</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Script for Pinging multiple servers]]></title>
			<link>http://www.windowsscript.com/forums/Thread-Script-for-Pinging-multiple-servers</link>
			<pubDate>Mon, 28 Jun 2010 03:30:42 -0700</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-Script-for-Pinging-multiple-servers</guid>
			<description><![CDATA[<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.infernodevelopment.com'>VBS Programming</a>
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="vbs" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">'===============================================================================&#8203;========================================================</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">'===============================================================================&#8203;========================================================</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">' Ping.vbs</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">' </span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">' Title................ : Script to Ping Machines</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">' </span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">'===============================================================================&#8203;========================================================</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">'===============================================================================&#8203;========================================================</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">'Option Explicit</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">dim</span> strMsg</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">dim</span> DateM,DateD,DateY,DateH,DateMi</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">dim</span> arrySecurityDescriptor</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">dim</span> objFSO, objTSL,objTSR,objTSN</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">dim</span> intTargetCnt</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">dim</span> strComputer,strResult</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">dim</span> vErrText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">dim</span> strListPath,strResultPath</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">strListPath <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #800040;">&quot;&quot;</span>     </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">strResultPath <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #800040;">&quot;&quot;</span>    </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">On Error Resume Next</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Set</span> objFso <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">CreateObject</span><span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;Scripting.FileSystemObject&quot;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Set</span> objTsL <span style="color: #0000ff; font-weight: bold;">=</span> objFso<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">OpenTextFile</span><span style="color: #009900;">&#40;</span>strListPath <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #800040;">&quot;computers.txt&quot;</span>,<span style="color: #ff8000;">1</span><span style="color: #009900;">&#41;</span>                    <span style="color: #008000; font-style: italic;">''''File to get the machine list.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Call</span> ErrHandle<span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;Opening List of Computers - &quot;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> strListPath <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #800040;">&quot;computers.txt&quot;</span><span style="color: #009900;">&#41;</span>   <span style="color: #008000; font-style: italic;">''''Error handling if the file is unable to open.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Set</span> objTsR <span style="color: #0000ff; font-weight: bold;">=</span> objFso<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">CreateTextFile</span><span style="color: #009900;">&#40;</span>strResultPath <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #800040;">&quot;Alive.txt&quot;</span>,<span style="color: #ff8000;">2</span><span style="color: #009900;">&#41;</span>                      <span style="color: #008000; font-style: italic;">'''''File to store the results for later review.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Call</span> ErrHandle<span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;Opening Result File - &quot;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> strResultPath <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #800040;">&quot;Alive.txt&quot;</span><span style="color: #009900;">&#41;</span>                 <span style="color: #008000; font-style: italic;">'''''Error handling if the file is unable to open.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Set</span> objTsN <span style="color: #0000ff; font-weight: bold;">=</span> objFso<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">CreateTextFile</span><span style="color: #009900;">&#40;</span>strResultPath <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #800040;">&quot;NotAlive.txt&quot;</span>,<span style="color: #ff8000;">2</span><span style="color: #009900;">&#41;</span>                 <span style="color: #008000; font-style: italic;">'''''File to store the results for later review.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Call</span> ErrHandle<span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;Opening Result File - &quot;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> strResultPath <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #800040;">&quot;NotAlive.txt&quot;</span><span style="color: #009900;">&#41;</span>            <span style="color: #008000; font-style: italic;">'''''Error handling if the file is unable to open.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">intTargetCnt <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #ff8000;">0</span>          <span style="color: #008000; font-style: italic;">'''''To Check the number of machines processed.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Do</span> <span style="color: #000099; font-weight: bold;">Until</span> objTsL<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">AtEndOfStream</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> strComputer <span style="color: #0000ff; font-weight: bold;">=</span> objTsL<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">ReadLine</span>        <span style="color: #008000; font-style: italic;">'''''Getting the computer name.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #000099; font-weight: bold;">Set</span> objWMIService <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">GetObject</span><span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;winmgmts:\\.\root\cimv2&quot;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #000099; font-weight: bold;">Set</span> colItems <span style="color: #0000ff; font-weight: bold;">=</span> objWMIService<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">ExecQuery</span><span style="color: #0000ff; font-weight: bold;"> _</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">     <span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;Select * from Win32_PingStatus &quot;</span> <span style="color: #0000ff; font-weight: bold;">&#x26; _</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #800040;">&quot;Where Address = '&quot;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> strComputer <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #800040;">&quot;'&quot;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #000099; font-weight: bold;">For Each</span> objItem <span style="color: #000099; font-weight: bold;">in</span> colItems</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">     <span style="color: #000099; font-weight: bold;">If</span> objItem<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">StatusCode</span> <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #ff8000;">0</span> <span style="color: #000099; font-weight: bold;">Then</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">         <span style="color: #008000; font-style: italic;">'WScript.Echo &quot;Reply received.&quot;         </span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  <span style="color: #008000; font-style: italic;">'objTsR.WriteLine ()</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  objTsR<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">WriteLine</span> <span style="color: #009900;">&#40;</span>strComputer<span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  <span style="color: #008000; font-style: italic;">'objTsR.WriteLine ()</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">              <span style="color: #000099; font-weight: bold;">Else</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">   <span style="color: #008000; font-style: italic;">'WScript.Echo &quot;No Reply received.&quot;         </span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  <span style="color: #008000; font-style: italic;">'objTsN.WriteLine ()</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  objTsN<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">WriteLine</span> <span style="color: #009900;">&#40;</span>strComputer<span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  <span style="color: #008000; font-style: italic;">'objTsN.WriteLine ()</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">             <span style="color: #000099; font-weight: bold;">End</span> <span style="color: #000099; font-weight: bold;">If</span>  </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #000099; font-weight: bold;">Next</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Loop</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">Sub</span> ErrHandle<span style="color: #009900;">&#40;</span>vActivity<span style="color: #009900;">&#41;</span>        <span style="color: #008000; font-style: italic;">'''''Subroutine for handling the error in file operations.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #000099; font-weight: bold;">If</span> <span style="color: #808080; font-weight: bold;">err</span> <span style="color: #0000ff; font-weight: bold;">&lt;&gt;</span> <span style="color: #ff8000;">0</span> <span style="color: #000099; font-weight: bold;">Then</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  vErrText <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #800040;">&quot;There has been a problem with &quot;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> vActivity</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  <span style="color: #808080; font-weight: bold;">wscript</span><span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">echo</span>  vErrText <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #408080; font-weight: bold;">vbcrlf</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #2b91af;">string</span><span style="color: #009900;">&#40;</span><span style="color: #2b91af;">Len</span><span style="color: #009900;">&#40;</span>vErrText<span style="color: #009900;">&#41;</span>,<span style="color: #800040;">&quot;-&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #408080; font-weight: bold;">vbcrlf</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #800040;">&quot;Error Number : &quot;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #808080; font-weight: bold;">err</span><span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">number</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #408080; font-weight: bold;">vbcrlf</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #800040;">&quot; Error Description : &quot;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #808080; font-weight: bold;">err</span><span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">description</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  CleanUpAndGo</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #000099; font-weight: bold;">End</span> <span style="color: #000099; font-weight: bold;">If</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">End Sub</span></div></li></ol></pre></code></div><br /></div><br />
<br />
-------------------------------------------------------<br />
Save this script in C:\ping folder. <br />
Copy the computer name for which you need to know the ping results in computers.txt file. <br />
Double click on the script . <br />
You will see 2 txt file created in same folder.<br />
One is Alive.txt - Pinging servers<br />
Other one Not- Alive.txt - Not pinging servers]]></description>
			<content:encoded><![CDATA[<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.infernodevelopment.com'>VBS Programming</a>
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="vbs" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">'===============================================================================&#8203;========================================================</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">'===============================================================================&#8203;========================================================</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">' Ping.vbs</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">' </span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">' Title................ : Script to Ping Machines</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">' </span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">'===============================================================================&#8203;========================================================</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">'===============================================================================&#8203;========================================================</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">'Option Explicit</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">dim</span> strMsg</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">dim</span> DateM,DateD,DateY,DateH,DateMi</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">dim</span> arrySecurityDescriptor</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">dim</span> objFSO, objTSL,objTSR,objTSN</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">dim</span> intTargetCnt</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">dim</span> strComputer,strResult</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">dim</span> vErrText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">dim</span> strListPath,strResultPath</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">strListPath <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #800040;">&quot;&quot;</span>     </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">strResultPath <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #800040;">&quot;&quot;</span>    </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">On Error Resume Next</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Set</span> objFso <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">CreateObject</span><span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;Scripting.FileSystemObject&quot;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Set</span> objTsL <span style="color: #0000ff; font-weight: bold;">=</span> objFso<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">OpenTextFile</span><span style="color: #009900;">&#40;</span>strListPath <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #800040;">&quot;computers.txt&quot;</span>,<span style="color: #ff8000;">1</span><span style="color: #009900;">&#41;</span>                    <span style="color: #008000; font-style: italic;">''''File to get the machine list.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Call</span> ErrHandle<span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;Opening List of Computers - &quot;</span> <span style="color: #0000ff; font-weight: bold;">&</span> strListPath <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #800040;">&quot;computers.txt&quot;</span><span style="color: #009900;">&#41;</span>   <span style="color: #008000; font-style: italic;">''''Error handling if the file is unable to open.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Set</span> objTsR <span style="color: #0000ff; font-weight: bold;">=</span> objFso<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">CreateTextFile</span><span style="color: #009900;">&#40;</span>strResultPath <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #800040;">&quot;Alive.txt&quot;</span>,<span style="color: #ff8000;">2</span><span style="color: #009900;">&#41;</span>                      <span style="color: #008000; font-style: italic;">'''''File to store the results for later review.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Call</span> ErrHandle<span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;Opening Result File - &quot;</span> <span style="color: #0000ff; font-weight: bold;">&</span> strResultPath <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #800040;">&quot;Alive.txt&quot;</span><span style="color: #009900;">&#41;</span>                 <span style="color: #008000; font-style: italic;">'''''Error handling if the file is unable to open.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Set</span> objTsN <span style="color: #0000ff; font-weight: bold;">=</span> objFso<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">CreateTextFile</span><span style="color: #009900;">&#40;</span>strResultPath <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #800040;">&quot;NotAlive.txt&quot;</span>,<span style="color: #ff8000;">2</span><span style="color: #009900;">&#41;</span>                 <span style="color: #008000; font-style: italic;">'''''File to store the results for later review.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Call</span> ErrHandle<span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;Opening Result File - &quot;</span> <span style="color: #0000ff; font-weight: bold;">&</span> strResultPath <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #800040;">&quot;NotAlive.txt&quot;</span><span style="color: #009900;">&#41;</span>            <span style="color: #008000; font-style: italic;">'''''Error handling if the file is unable to open.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">intTargetCnt <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #ff8000;">0</span>          <span style="color: #008000; font-style: italic;">'''''To Check the number of machines processed.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Do</span> <span style="color: #000099; font-weight: bold;">Until</span> objTsL<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">AtEndOfStream</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> strComputer <span style="color: #0000ff; font-weight: bold;">=</span> objTsL<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">ReadLine</span>        <span style="color: #008000; font-style: italic;">'''''Getting the computer name.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #000099; font-weight: bold;">Set</span> objWMIService <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">GetObject</span><span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;winmgmts:\\.\root\cimv2&quot;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #000099; font-weight: bold;">Set</span> colItems <span style="color: #0000ff; font-weight: bold;">=</span> objWMIService<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">ExecQuery</span><span style="color: #0000ff; font-weight: bold;"> _</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">     <span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;Select * from Win32_PingStatus &quot;</span> <span style="color: #0000ff; font-weight: bold;">& _</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #800040;">&quot;Where Address = '&quot;</span> <span style="color: #0000ff; font-weight: bold;">&</span> strComputer <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #800040;">&quot;'&quot;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #000099; font-weight: bold;">For Each</span> objItem <span style="color: #000099; font-weight: bold;">in</span> colItems</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">     <span style="color: #000099; font-weight: bold;">If</span> objItem<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">StatusCode</span> <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #ff8000;">0</span> <span style="color: #000099; font-weight: bold;">Then</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">         <span style="color: #008000; font-style: italic;">'WScript.Echo &quot;Reply received.&quot;         </span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  <span style="color: #008000; font-style: italic;">'objTsR.WriteLine ()</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  objTsR<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">WriteLine</span> <span style="color: #009900;">&#40;</span>strComputer<span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  <span style="color: #008000; font-style: italic;">'objTsR.WriteLine ()</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">              <span style="color: #000099; font-weight: bold;">Else</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">   <span style="color: #008000; font-style: italic;">'WScript.Echo &quot;No Reply received.&quot;         </span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  <span style="color: #008000; font-style: italic;">'objTsN.WriteLine ()</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  objTsN<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">WriteLine</span> <span style="color: #009900;">&#40;</span>strComputer<span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  <span style="color: #008000; font-style: italic;">'objTsN.WriteLine ()</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">             <span style="color: #000099; font-weight: bold;">End</span> <span style="color: #000099; font-weight: bold;">If</span>  </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #000099; font-weight: bold;">Next</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Loop</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">Sub</span> ErrHandle<span style="color: #009900;">&#40;</span>vActivity<span style="color: #009900;">&#41;</span>        <span style="color: #008000; font-style: italic;">'''''Subroutine for handling the error in file operations.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #000099; font-weight: bold;">If</span> <span style="color: #808080; font-weight: bold;">err</span> <span style="color: #0000ff; font-weight: bold;">&lt;&gt;</span> <span style="color: #ff8000;">0</span> <span style="color: #000099; font-weight: bold;">Then</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  vErrText <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #800040;">&quot;There has been a problem with &quot;</span> <span style="color: #0000ff; font-weight: bold;">&</span> vActivity</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  <span style="color: #808080; font-weight: bold;">wscript</span><span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">echo</span>  vErrText <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #408080; font-weight: bold;">vbcrlf</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #2b91af;">string</span><span style="color: #009900;">&#40;</span><span style="color: #2b91af;">Len</span><span style="color: #009900;">&#40;</span>vErrText<span style="color: #009900;">&#41;</span>,<span style="color: #800040;">&quot;-&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #408080; font-weight: bold;">vbcrlf</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #800040;">&quot;Error Number : &quot;</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #808080; font-weight: bold;">err</span><span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">number</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #408080; font-weight: bold;">vbcrlf</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #800040;">&quot; Error Description : &quot;</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #808080; font-weight: bold;">err</span><span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">description</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  CleanUpAndGo</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #000099; font-weight: bold;">End</span> <span style="color: #000099; font-weight: bold;">If</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">End Sub</span></div></li></ol></pre></code></div><br /></div><br />
<br />
-------------------------------------------------------<br />
Save this script in C:\ping folder. <br />
Copy the computer name for which you need to know the ping results in computers.txt file. <br />
Double click on the script . <br />
You will see 2 txt file created in same folder.<br />
One is Alive.txt - Pinging servers<br />
Other one Not- Alive.txt - Not pinging servers]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[openoffice vs microsoft works]]></title>
			<link>http://www.windowsscript.com/forums/Thread-openoffice-vs-microsoft-works</link>
			<pubDate>Tue, 18 May 2010 06:31:40 -0700</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-openoffice-vs-microsoft-works</guid>
			<description><![CDATA[Hey guys, i have been using both recently... <br />
<br />
Which do you think is the best? (From experience)]]></description>
			<content:encoded><![CDATA[Hey guys, i have been using both recently... <br />
<br />
Which do you think is the best? (From experience)]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[SOLVED&#93; The number of days in a month]]></title>
			<link>http://www.windowsscript.com/forums/Thread-SOLVED-The-number-of-days-in-a-month</link>
			<pubDate>Wed, 28 Apr 2010 12:27:30 -0700</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-SOLVED-The-number-of-days-in-a-month</guid>
			<description><![CDATA[As <a href="http://en.wikipedia.org/wiki/Theres_more_than_one_way_to_do_it" target="_blank">Time Toady said</a><br />
<blockquote><cite>Quote:</cite>There's more than one way to do it</blockquote>
<br />
I think that all of you know how to know the number of days in a month. Let me collect <a href="http://with-love-from-siberia.blogspot.com/2010/04/number-of-days-in-month.html" target="_blank">all known (at least for me) methods</a>.<br />
<br />
Bombastic and verbose but fast<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>Date.prototype.isLeapYear = function()<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;var y = this.getFullYear();<br />
&nbsp;&nbsp;&nbsp;&nbsp;return y % 4 == 0 &amp;&amp; y % 100 != 0 || y % 400 == 0;<br />
};<br />
<br />
Date.prototype.getDaysInMonth = function()<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;return arguments.callee[this.isLeapYear() ? 'L' : 'R'&#93;[this.getMonth()&#93;;<br />
};<br />
<br />
// durations of months for the regular year<br />
Date.prototype.getDaysInMonth.R = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31&#93;;<br />
// durations of months for the leap year<br />
Date.prototype.getDaysInMonth.L = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31&#93;;</code></div></div>
<br />
Shorter and longer<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>Date.prototype.getDaysInMonth = function ()<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;var here = new Date(this.getTime());<br />
&nbsp;&nbsp;&nbsp;&nbsp;here.setDate(32);<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 32 - here.getDate();<br />
};</code></div></div>
<br />
Laconic but long almost as previous<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>Date.prototype.getDaysInMonth = function()<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;return (new Date(this.getFullYear(), this.getMonth() + 1, 0)).getDate();<br />
};</code></div></div>
]]></description>
			<content:encoded><![CDATA[As <a href="http://en.wikipedia.org/wiki/Theres_more_than_one_way_to_do_it" target="_blank">Time Toady said</a><br />
<blockquote><cite>Quote:</cite>There's more than one way to do it</blockquote>
<br />
I think that all of you know how to know the number of days in a month. Let me collect <a href="http://with-love-from-siberia.blogspot.com/2010/04/number-of-days-in-month.html" target="_blank">all known (at least for me) methods</a>.<br />
<br />
Bombastic and verbose but fast<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>Date.prototype.isLeapYear = function()<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;var y = this.getFullYear();<br />
&nbsp;&nbsp;&nbsp;&nbsp;return y % 4 == 0 &amp;&amp; y % 100 != 0 || y % 400 == 0;<br />
};<br />
<br />
Date.prototype.getDaysInMonth = function()<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;return arguments.callee[this.isLeapYear() ? 'L' : 'R'][this.getMonth()];<br />
};<br />
<br />
// durations of months for the regular year<br />
Date.prototype.getDaysInMonth.R = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];<br />
// durations of months for the leap year<br />
Date.prototype.getDaysInMonth.L = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];</code></div></div>
<br />
Shorter and longer<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>Date.prototype.getDaysInMonth = function ()<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;var here = new Date(this.getTime());<br />
&nbsp;&nbsp;&nbsp;&nbsp;here.setDate(32);<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 32 - here.getDate();<br />
};</code></div></div>
<br />
Laconic but long almost as previous<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>Date.prototype.getDaysInMonth = function()<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;return (new Date(this.getFullYear(), this.getMonth() + 1, 0)).getDate();<br />
};</code></div></div>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Test thread]]></title>
			<link>http://www.windowsscript.com/forums/Thread-Test-thread</link>
			<pubDate>Wed, 03 Mar 2010 21:20:06 -0800</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-Test-thread</guid>
			<description><![CDATA[Test thread.  Please ignore.]]></description>
			<content:encoded><![CDATA[Test thread.  Please ignore.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Edit signature]]></title>
			<link>http://www.windowsscript.com/forums/Thread-Edit-signature</link>
			<pubDate>Fri, 05 Feb 2010 13:21:37 -0800</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-Edit-signature</guid>
			<description><![CDATA[undefined]]></description>
			<content:encoded><![CDATA[undefined]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Computer startup problems]]></title>
			<link>http://www.windowsscript.com/forums/Thread-Computer-startup-problems--926</link>
			<pubDate>Sun, 10 Jan 2010 01:40:21 -0800</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-Computer-startup-problems--926</guid>
			<description><![CDATA[I all, <br />
I have a problem on my Windows Vista that began afetr the purchase of an external Hard Disk Freecom. <br />
A few days afetr the purchase I disconnected it while it was writing and, since that moment, every time I connect and disconnect it, the PC go to freeze mode for 5 minutes. <br />
The same thing happen even if the hard disk is disconnected: every time I start windows it go to freeze a little after the password, and every time I connect and disconnect a usb device. <br />
I have looked for the solution everywhere, updated windows, unistalled and installed the hard disk from the device manager but I solved the problem only when I restored a recent backup. <br />
Yesterday the Hard disk was writing a backup while Vista was installing the updates; at the end of the proceure windows restarted automatically and the problem began again!!! <br />
The Pc go to freeze when it starts, every time I connect or disconnect the hard disk, an usb earphone that has always worked switch on but there is no audio and I don't know how many others usb devices will have problems. <br />
Has anyone an idea to solve this problem before I throw out of the window Vista or the the hard disk? <br />
Thank you]]></description>
			<content:encoded><![CDATA[I all, <br />
I have a problem on my Windows Vista that began afetr the purchase of an external Hard Disk Freecom. <br />
A few days afetr the purchase I disconnected it while it was writing and, since that moment, every time I connect and disconnect it, the PC go to freeze mode for 5 minutes. <br />
The same thing happen even if the hard disk is disconnected: every time I start windows it go to freeze a little after the password, and every time I connect and disconnect a usb device. <br />
I have looked for the solution everywhere, updated windows, unistalled and installed the hard disk from the device manager but I solved the problem only when I restored a recent backup. <br />
Yesterday the Hard disk was writing a backup while Vista was installing the updates; at the end of the proceure windows restarted automatically and the problem began again!!! <br />
The Pc go to freeze when it starts, every time I connect or disconnect the hard disk, an usb earphone that has always worked switch on but there is no audio and I don't know how many others usb devices will have problems. <br />
Has anyone an idea to solve this problem before I throw out of the window Vista or the the hard disk? <br />
Thank you]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Customizing Windows 7 Start Menu via script]]></title>
			<link>http://www.windowsscript.com/forums/Thread-Customizing-Windows-7-Start-Menu-via-script</link>
			<pubDate>Mon, 04 Jan 2010 01:46:32 -0800</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-Customizing-Windows-7-Start-Menu-via-script</guid>
			<description><![CDATA[undefined]]></description>
			<content:encoded><![CDATA[undefined]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Notification Icons Missing After Vista SP2 Update]]></title>
			<link>http://www.windowsscript.com/forums/Thread-Notification-Icons-Missing-After-Vista-SP2-Update</link>
			<pubDate>Sun, 06 Dec 2009 16:40:07 -0800</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-Notification-Icons-Missing-After-Vista-SP2-Update</guid>
			<description><![CDATA[<p>I recently bought a new laptop that came pre-installed with Windows Vista Home Premium.  While waiting for the release of Windows 7, I got comfortable with my system and customized all of my settings including the system tray&#8217;s notification icons.  All was well and my new laptop began feeling like home.  That is, until this morning when Automatic Updates rolled out Service Pack 2 for Windows Vista (<a rel="nofollow" href="http://support.microsoft.com/kb/948465" title="Information about Service Pack 2 for Windows Vista and for Windows Server 2008">KB94846</a>) (<a rel="nofollow" href="http://technet.microsoft.com/en-us/windows/dd767387.aspx" title="Service Pack 2 for Windows Server 2008 and Windows Vista at Microsoft TechNet">more info</a>).  After the update was applied, system notification icons for the Volume Mixer and Network were missing. <a href="http://www.nilpo.com/2009/12/windows-vista/notification-icons-missing-after-vista-sp2-update/#more-115" class="more-link">(more&#8230;)</a></p>
<br />
<br />
<br />
<br />
Posted on Sat, 05 Dec 2009 06:56:22 +0000 at <a href="http://www.nilpo.com/2009/12/windows-vista/notification-icons-missing-after-vista-sp2-update/" target="_blank">http://www.nilpo.com/2009/12/windows-vis...p2-update/</a><br />
Comments: <a href="http://www.nilpo.com/2009/12/windows-vista/notification-icons-missing-after-vista-sp2-update/#comments" target="_blank">http://www.nilpo.com/2009/12/windows-vis.../#comments</a>]]></description>
			<content:encoded><![CDATA[<p>I recently bought a new laptop that came pre-installed with Windows Vista Home Premium.  While waiting for the release of Windows 7, I got comfortable with my system and customized all of my settings including the system tray&#8217;s notification icons.  All was well and my new laptop began feeling like home.  That is, until this morning when Automatic Updates rolled out Service Pack 2 for Windows Vista (<a rel="nofollow" href="http://support.microsoft.com/kb/948465" title="Information about Service Pack 2 for Windows Vista and for Windows Server 2008">KB94846</a>) (<a rel="nofollow" href="http://technet.microsoft.com/en-us/windows/dd767387.aspx" title="Service Pack 2 for Windows Server 2008 and Windows Vista at Microsoft TechNet">more info</a>).  After the update was applied, system notification icons for the Volume Mixer and Network were missing. <a href="http://www.nilpo.com/2009/12/windows-vista/notification-icons-missing-after-vista-sp2-update/#more-115" class="more-link">(more&#8230;)</a></p>
<br />
<br />
<br />
<br />
Posted on Sat, 05 Dec 2009 06:56:22 +0000 at <a href="http://www.nilpo.com/2009/12/windows-vista/notification-icons-missing-after-vista-sp2-update/" target="_blank">http://www.nilpo.com/2009/12/windows-vis...p2-update/</a><br />
Comments: <a href="http://www.nilpo.com/2009/12/windows-vista/notification-icons-missing-after-vista-sp2-update/#comments" target="_blank">http://www.nilpo.com/2009/12/windows-vis.../#comments</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Formatting Text]]></title>
			<link>http://www.windowsscript.com/forums/Thread-Formatting-Text</link>
			<pubDate>Sat, 17 Oct 2009 09:19:58 -0700</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-Formatting-Text</guid>
			<description><![CDATA[I want the currency in my script to be formatted as such <br />
<br />
&#36;123.45<br />
-&#36;123.45 or<br />
(&#36;123.45)<br />
<br />
I accomplished one line to work <br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.infernodevelopment.com'>VBS Programming</a>
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="vbs" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">WriteLine</span><span style="color: #009900;">&#40;</span><span style="color: #2b91af;">FormatCurrency</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #2b91af;">CCur</span><span style="color: #009900;">&#40;</span>strStart<span style="color: #009900;">&#41;</span> <span style="color: #0000ff; font-weight: bold;">+</span> curTotal<span style="color: #009900;">&#41;</span>, <span style="color: #ff8000;">2</span>, , <span style="color: #ff8000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></div></li></ol></pre></code></div><br /></div><br />
<br />
The problem is the rest of the code seems to not work.<br />
<br />
My question is:<br />
Can I format the whole script so currency is in the above examples?<br />
<br />
This will work but I have a problem with this code reading the () and - if the number is negative.<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.infernodevelopment.com'>VBS Programming</a>
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="vbs" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Do</span> <span style="color: #000099; font-weight: bold;">Until</span> objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">AtEndOfStream</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strLine <span style="color: #0000ff; font-weight: bold;">=</span> objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">ReadLine</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000099; font-weight: bold;">Loop</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	strStart <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">Right</span><span style="color: #009900;">&#40;</span>strLine, <span style="color: #2b91af;">Len</span><span style="color: #009900;">&#40;</span>strLine<span style="color: #009900;">&#41;</span> <span style="color: #0000ff; font-weight: bold;">-</span> <span style="color: #2b91af;">InStr</span><span style="color: #009900;">&#40;</span>strLine, <span style="color: #800040;">&quot;$&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">Close</span></div></li></ol></pre></code></div><br /></div><br />
<br />
So basically, if I can format the whole script then how do I get the above code to read the text file properly if it has a negative number?]]></description>
			<content:encoded><![CDATA[I want the currency in my script to be formatted as such <br />
<br />
&#36;123.45<br />
-&#36;123.45 or<br />
(&#36;123.45)<br />
<br />
I accomplished one line to work <br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.infernodevelopment.com'>VBS Programming</a>
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="vbs" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">WriteLine</span><span style="color: #009900;">&#40;</span><span style="color: #2b91af;">FormatCurrency</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #2b91af;">CCur</span><span style="color: #009900;">&#40;</span>strStart<span style="color: #009900;">&#41;</span> <span style="color: #0000ff; font-weight: bold;">+</span> curTotal<span style="color: #009900;">&#41;</span>, <span style="color: #ff8000;">2</span>, , <span style="color: #ff8000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></div></li></ol></pre></code></div><br /></div><br />
<br />
The problem is the rest of the code seems to not work.<br />
<br />
My question is:<br />
Can I format the whole script so currency is in the above examples?<br />
<br />
This will work but I have a problem with this code reading the () and - if the number is negative.<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.infernodevelopment.com'>VBS Programming</a>
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="vbs" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Do</span> <span style="color: #000099; font-weight: bold;">Until</span> objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">AtEndOfStream</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strLine <span style="color: #0000ff; font-weight: bold;">=</span> objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">ReadLine</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000099; font-weight: bold;">Loop</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	strStart <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">Right</span><span style="color: #009900;">&#40;</span>strLine, <span style="color: #2b91af;">Len</span><span style="color: #009900;">&#40;</span>strLine<span style="color: #009900;">&#41;</span> <span style="color: #0000ff; font-weight: bold;">-</span> <span style="color: #2b91af;">InStr</span><span style="color: #009900;">&#40;</span>strLine, <span style="color: #800040;">&quot;$&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">Close</span></div></li></ol></pre></code></div><br /></div><br />
<br />
So basically, if I can format the whole script then how do I get the above code to read the text file properly if it has a negative number?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Naming CreateTextFile using File System Object]]></title>
			<link>http://www.windowsscript.com/forums/Thread-Naming-CreateTextFile-using-File-System-Object</link>
			<pubDate>Fri, 16 Oct 2009 01:21:04 -0700</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-Naming-CreateTextFile-using-File-System-Object</guid>
			<description><![CDATA[Here's my script:<br />
<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.infernodevelopment.com'>VBS Programming</a>
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="vbs" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #808080; font-weight: bold;">WScript</span><span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">Echo</span> <span style="color: #800040;">&quot;You will be asked to enter transaction amounts.&quot;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #408080; font-weight: bold;">vbCr</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #408080; font-weight: bold;">vbCr</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #800040;">&quot;Press Cancel at any time to see the running balance.&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">arrVals <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">Array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">Const</span> ForWriting <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #ff8000;">2</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Set</span> objFso <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">CreateObject</span><span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;Scripting.FileSystemObject&quot;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">'Set objFile = objFso.OpenTextFile(&quot;C:\testfile.txt&quot;, ForWriting, true)</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Set</span> objFile <span style="color: #0000ff; font-weight: bold;">=</span> objFSO<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">CreateTextFile</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff; font-weight: bold;"> _</span> </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #800040;">&quot;c:\Documents and Settings\Bones\Desktop\CheckBook\&quot;</span><span style="color: #0000ff; font-weight: bold;"> _</span> </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #2b91af;">Month</span><span style="color: #009900;">&#40;</span><span style="color: #2b91af;">Date</span><span style="color: #009900;">&#41;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #800040;">&quot;_&quot;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #2b91af;">Day</span><span style="color: #009900;">&#40;</span><span style="color: #2b91af;">Date</span><span style="color: #009900;">&#41;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #800040;">&quot;_&quot;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #2b91af;">Year</span><span style="color: #009900;">&#40;</span><span style="color: #2b91af;">Date</span><span style="color: #009900;">&#41;</span><span style="color: #0000ff; font-weight: bold;"> _</span> </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #800040;">&quot;.txt&quot;</span>, ForWriting<span style="color: #009900;">&#41;</span> </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">' Loop until you get a starting value or Cancel to exit script</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Do</span> <span style="color: #000099; font-weight: bold;">While</span> <span style="color: #000099; font-weight: bold;">True</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	strStart <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">InputBox</span><span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;Enter starting balance as a decimal. (e.g. 234.56)&quot;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #408080; font-weight: bold;">vbCr</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #408080; font-weight: bold;">vbCr</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #800040;">&quot;Enter debit amounts as negatives. (e.g. -23.40)&quot;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000099; font-weight: bold;">If</span> strStart <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #800040;">&quot;&quot;</span> <span style="color: #000099; font-weight: bold;">Then</span> <span style="color: #808080; font-weight: bold;">WScript</span><span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">Quit</span> <span style="color: #008000; font-style: italic;">' user pressed Cancel or entered blank info</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000099; font-weight: bold;">If</span> <span style="color: #2b91af;">IsNumeric</span><span style="color: #009900;">&#40;</span>strStart<span style="color: #009900;">&#41;</span> <span style="color: #000099; font-weight: bold;">Then</span> <span style="color: #008000; font-style: italic;">' checks if the entered text can be interpreted as a number (simple typo check)</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">WriteLine</span> <span style="color: #800040;">&quot;&quot;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> strStart</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		<span style="color: #000099; background-color: yellow;">Exit Do</span> <span style="color: #008000; font-style: italic;">' exits loop if the entry is a valid number</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000099; font-weight: bold;">Else</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		<span style="color: #808080; font-weight: bold;">WScript</span><span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">Echo</span> <span style="color: #800040;">&quot;There was an error in your last entry.&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000099; font-weight: bold;">End</span> <span style="color: #000099; font-weight: bold;">If</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Loop</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">intCount <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #ff8000;">0</span> <span style="color: #008000; font-style: italic;">' transaction counter</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">' Loop through transactions</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Do</span> <span style="color: #000099; font-weight: bold;">While</span> <span style="color: #000099; font-weight: bold;">True</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	strAmt <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">InputBox</span><span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;Enter transaction amount&quot;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000099; font-weight: bold;">If</span> strAmt <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #800040;">&quot;&quot;</span> <span style="color: #000099; font-weight: bold;">Then</span> <span style="color: #000099; background-color: yellow;">Exit Do</span> <span style="color: #008000; font-style: italic;">' user pressed Cancel or enter blank info</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">WriteLine</span> <span style="color: #800040;">&quot;&quot;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> strAmt</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000099; font-weight: bold;">If</span> <span style="color: #2b91af;">IsNumeric</span><span style="color: #009900;">&#40;</span>strAmt<span style="color: #009900;">&#41;</span> <span style="color: #000099; font-weight: bold;">Then</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		<span style="color: #00bdff; font-weight: bold;">ReDim</span> <span style="color: #000099; font-weight: bold;">Preserve</span> arrVals<span style="color: #009900;">&#40;</span>intCount<span style="color: #009900;">&#41;</span> <span style="color: #008000; font-style: italic;">'resize array to accomodate current number of values</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		arrVals<span style="color: #009900;">&#40;</span>intCount<span style="color: #009900;">&#41;</span> <span style="color: #0000ff; font-weight: bold;">=</span> strAmt <span style="color: #008000; font-style: italic;">' insert current transaction into array</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		intCount <span style="color: #0000ff; font-weight: bold;">=</span> intCount <span style="color: #0000ff; font-weight: bold;">+</span> <span style="color: #ff8000;">1</span> <span style="color: #008000; font-style: italic;">' increment the counter</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		<span style="color: #008000; font-style: italic;">'objFile.WriteLine &quot;&quot; &#x26; strAmt</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000099; font-weight: bold;">Else</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		<span style="color: #808080; font-weight: bold;">WScript</span><span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">Echo</span> <span style="color: #800040;">&quot;There was an error in your last entry. Please enter it again.&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000099; font-weight: bold;">End</span> <span style="color: #000099; font-weight: bold;">If</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Loop</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">' Add the values in the array.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">curTotal <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">CCur</span><span style="color: #009900;">&#40;</span><span style="color:#ff8000;">0.00</span><span style="color: #009900;">&#41;</span> <span style="color: #008000; font-style: italic;">' initialize total as currency value of 0</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">For</span> i <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #ff8000;">0</span> <span style="color: #000099; font-weight: bold;">to</span> <span style="color: #2b91af;">UBound</span><span style="color: #009900;">&#40;</span>arrVals<span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	curTotal <span style="color: #0000ff; font-weight: bold;">=</span> curTotal <span style="color: #0000ff; font-weight: bold;">+</span> <span style="color: #2b91af;">CCur</span><span style="color: #009900;">&#40;</span>arrVals<span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Next</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">WriteBlankLines</span><span style="color: #009900;">&#40;</span><span style="color: #ff8000;">3</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">WriteLine</span> <span style="color: #800040;">&quot;Total:&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">WriteBlankLines</span><span style="color: #009900;">&#40;</span><span style="color: #ff8000;">1</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">WriteLine</span> <span style="color: #800040;">&quot;$&quot;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #009900;">&#40;</span><span style="color: #2b91af;">CCur</span><span style="color: #009900;">&#40;</span>strStart<span style="color: #009900;">&#41;</span> <span style="color: #0000ff; font-weight: bold;">+</span> curTotal<span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">Close</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #808080; font-weight: bold;">WScript</span><span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">Echo</span> <span style="color: #800040;">&quot;Running Total: $&quot;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #009900;">&#40;</span><span style="color: #2b91af;">CCur</span><span style="color: #009900;">&#40;</span>strStart<span style="color: #009900;">&#41;</span> <span style="color: #0000ff; font-weight: bold;">+</span> curTotal<span style="color: #009900;">&#41;</span></div></li></ol></pre></code></div><br /></div><br />
<br />
The script works fine. I even have it creating a text file named "today's date". If I run the script more than once per day it overwrites the text file created before it. My question is:<br />
<br />
How do you get it to name each new text file different than the first while still maintaining the system date?]]></description>
			<content:encoded><![CDATA[Here's my script:<br />
<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.infernodevelopment.com'>VBS Programming</a>
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="vbs" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #808080; font-weight: bold;">WScript</span><span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">Echo</span> <span style="color: #800040;">&quot;You will be asked to enter transaction amounts.&quot;</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #408080; font-weight: bold;">vbCr</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #408080; font-weight: bold;">vbCr</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #800040;">&quot;Press Cancel at any time to see the running balance.&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">arrVals <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">Array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">Const</span> ForWriting <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #ff8000;">2</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Set</span> objFso <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">CreateObject</span><span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;Scripting.FileSystemObject&quot;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">'Set objFile = objFso.OpenTextFile(&quot;C:\testfile.txt&quot;, ForWriting, true)</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Set</span> objFile <span style="color: #0000ff; font-weight: bold;">=</span> objFSO<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">CreateTextFile</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff; font-weight: bold;"> _</span> </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #800040;">&quot;c:\Documents and Settings\Bones\Desktop\CheckBook\&quot;</span><span style="color: #0000ff; font-weight: bold;"> _</span> </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #2b91af;">Month</span><span style="color: #009900;">&#40;</span><span style="color: #2b91af;">Date</span><span style="color: #009900;">&#41;</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #800040;">&quot;_&quot;</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #2b91af;">Day</span><span style="color: #009900;">&#40;</span><span style="color: #2b91af;">Date</span><span style="color: #009900;">&#41;</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #800040;">&quot;_&quot;</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #2b91af;">Year</span><span style="color: #009900;">&#40;</span><span style="color: #2b91af;">Date</span><span style="color: #009900;">&#41;</span><span style="color: #0000ff; font-weight: bold;"> _</span> </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #800040;">&quot;.txt&quot;</span>, ForWriting<span style="color: #009900;">&#41;</span> </div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">' Loop until you get a starting value or Cancel to exit script</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Do</span> <span style="color: #000099; font-weight: bold;">While</span> <span style="color: #000099; font-weight: bold;">True</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	strStart <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">InputBox</span><span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;Enter starting balance as a decimal. (e.g. 234.56)&quot;</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #408080; font-weight: bold;">vbCr</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #408080; font-weight: bold;">vbCr</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #800040;">&quot;Enter debit amounts as negatives. (e.g. -23.40)&quot;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000099; font-weight: bold;">If</span> strStart <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #800040;">&quot;&quot;</span> <span style="color: #000099; font-weight: bold;">Then</span> <span style="color: #808080; font-weight: bold;">WScript</span><span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">Quit</span> <span style="color: #008000; font-style: italic;">' user pressed Cancel or entered blank info</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000099; font-weight: bold;">If</span> <span style="color: #2b91af;">IsNumeric</span><span style="color: #009900;">&#40;</span>strStart<span style="color: #009900;">&#41;</span> <span style="color: #000099; font-weight: bold;">Then</span> <span style="color: #008000; font-style: italic;">' checks if the entered text can be interpreted as a number (simple typo check)</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">WriteLine</span> <span style="color: #800040;">&quot;&quot;</span> <span style="color: #0000ff; font-weight: bold;">&</span> strStart</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		<span style="color: #000099; background-color: yellow;">Exit Do</span> <span style="color: #008000; font-style: italic;">' exits loop if the entry is a valid number</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000099; font-weight: bold;">Else</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		<span style="color: #808080; font-weight: bold;">WScript</span><span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">Echo</span> <span style="color: #800040;">&quot;There was an error in your last entry.&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000099; font-weight: bold;">End</span> <span style="color: #000099; font-weight: bold;">If</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Loop</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">intCount <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #ff8000;">0</span> <span style="color: #008000; font-style: italic;">' transaction counter</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">' Loop through transactions</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Do</span> <span style="color: #000099; font-weight: bold;">While</span> <span style="color: #000099; font-weight: bold;">True</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	strAmt <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">InputBox</span><span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;Enter transaction amount&quot;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000099; font-weight: bold;">If</span> strAmt <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #800040;">&quot;&quot;</span> <span style="color: #000099; font-weight: bold;">Then</span> <span style="color: #000099; background-color: yellow;">Exit Do</span> <span style="color: #008000; font-style: italic;">' user pressed Cancel or enter blank info</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">WriteLine</span> <span style="color: #800040;">&quot;&quot;</span> <span style="color: #0000ff; font-weight: bold;">&</span> strAmt</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000099; font-weight: bold;">If</span> <span style="color: #2b91af;">IsNumeric</span><span style="color: #009900;">&#40;</span>strAmt<span style="color: #009900;">&#41;</span> <span style="color: #000099; font-weight: bold;">Then</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		<span style="color: #00bdff; font-weight: bold;">ReDim</span> <span style="color: #000099; font-weight: bold;">Preserve</span> arrVals<span style="color: #009900;">&#40;</span>intCount<span style="color: #009900;">&#41;</span> <span style="color: #008000; font-style: italic;">'resize array to accomodate current number of values</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		arrVals<span style="color: #009900;">&#40;</span>intCount<span style="color: #009900;">&#41;</span> <span style="color: #0000ff; font-weight: bold;">=</span> strAmt <span style="color: #008000; font-style: italic;">' insert current transaction into array</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		intCount <span style="color: #0000ff; font-weight: bold;">=</span> intCount <span style="color: #0000ff; font-weight: bold;">+</span> <span style="color: #ff8000;">1</span> <span style="color: #008000; font-style: italic;">' increment the counter</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		<span style="color: #008000; font-style: italic;">'objFile.WriteLine &quot;&quot; & strAmt</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000099; font-weight: bold;">Else</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		<span style="color: #808080; font-weight: bold;">WScript</span><span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">Echo</span> <span style="color: #800040;">&quot;There was an error in your last entry. Please enter it again.&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #000099; font-weight: bold;">End</span> <span style="color: #000099; font-weight: bold;">If</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Loop</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #008000; font-style: italic;">' Add the values in the array.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">curTotal <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">CCur</span><span style="color: #009900;">&#40;</span><span style="color:#ff8000;">0.00</span><span style="color: #009900;">&#41;</span> <span style="color: #008000; font-style: italic;">' initialize total as currency value of 0</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">For</span> i <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #ff8000;">0</span> <span style="color: #000099; font-weight: bold;">to</span> <span style="color: #2b91af;">UBound</span><span style="color: #009900;">&#40;</span>arrVals<span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	curTotal <span style="color: #0000ff; font-weight: bold;">=</span> curTotal <span style="color: #0000ff; font-weight: bold;">+</span> <span style="color: #2b91af;">CCur</span><span style="color: #009900;">&#40;</span>arrVals<span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Next</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">WriteBlankLines</span><span style="color: #009900;">&#40;</span><span style="color: #ff8000;">3</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">WriteLine</span> <span style="color: #800040;">&quot;Total:&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">WriteBlankLines</span><span style="color: #009900;">&#40;</span><span style="color: #ff8000;">1</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">WriteLine</span> <span style="color: #800040;">&quot;$&quot;</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #009900;">&#40;</span><span style="color: #2b91af;">CCur</span><span style="color: #009900;">&#40;</span>strStart<span style="color: #009900;">&#41;</span> <span style="color: #0000ff; font-weight: bold;">+</span> curTotal<span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">objFile<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">Close</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #808080; font-weight: bold;">WScript</span><span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">Echo</span> <span style="color: #800040;">&quot;Running Total: $&quot;</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #009900;">&#40;</span><span style="color: #2b91af;">CCur</span><span style="color: #009900;">&#40;</span>strStart<span style="color: #009900;">&#41;</span> <span style="color: #0000ff; font-weight: bold;">+</span> curTotal<span style="color: #009900;">&#41;</span></div></li></ol></pre></code></div><br /></div><br />
<br />
The script works fine. I even have it creating a text file named "today's date". If I run the script more than once per day it overwrites the text file created before it. My question is:<br />
<br />
How do you get it to name each new text file different than the first while still maintaining the system date?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Message Box]]></title>
			<link>http://www.windowsscript.com/forums/Thread-Message-Box</link>
			<pubDate>Sat, 12 Sep 2009 20:54:09 -0700</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-Message-Box</guid>
			<description><![CDATA[If i create a message box, how do I get the script to run a different line when the user clicks ok?]]></description>
			<content:encoded><![CDATA[If i create a message box, how do I get the script to run a different line when the user clicks ok?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Need a little help.]]></title>
			<link>http://www.windowsscript.com/forums/Thread-Need-a-little-help</link>
			<pubDate>Sat, 12 Sep 2009 19:40:23 -0700</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-Need-a-little-help</guid>
			<description><![CDATA[I was playing around with this script below. I would assume when the user inputs nothing that the script would instruct the user to try again (line 6). It doesn't seem to work that way. Also how do I get the cancel button and/or "x" button to close and end the script rather than continue with the next line of code.<br />
<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.infernodevelopment.com'>VBS Programming</a>
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="vbs" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">Dim</span> strPassword</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">strPassword <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">LCase</span> <span style="color: #009900;">&#40;</span><span style="color: #2b91af;">InputBox</span> <span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;Guess the Secret Word!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">If</span> strPassword <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #800040;">&quot;scripting&quot;</span> <span style="color: #000099; font-weight: bold;">Then</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #2b91af;">MsgBox</span> <span style="color: #800040;">&quot;Correct&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">ElseIf</span> strPassword <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #800040;">&quot; &quot;</span> <span style="color: #000099; font-weight: bold;">Then</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #2b91af;">MsgBox</span> <span style="color: #800040;">&quot;You have to try, silly.&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Else</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #2b91af;">MsgBox</span> <span style="color: #800040;">&quot;NOPE!&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">End</span> <span style="color: #000099; font-weight: bold;">If</span></div></li></ol></pre></code></div><br /></div>]]></description>
			<content:encoded><![CDATA[I was playing around with this script below. I would assume when the user inputs nothing that the script would instruct the user to try again (line 6). It doesn't seem to work that way. Also how do I get the cancel button and/or "x" button to close and end the script rather than continue with the next line of code.<br />
<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.infernodevelopment.com'>VBS Programming</a>
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="vbs" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00bdff; font-weight: bold;">Dim</span> strPassword</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">strPassword <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">LCase</span> <span style="color: #009900;">&#40;</span><span style="color: #2b91af;">InputBox</span> <span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;Guess the Secret Word!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">If</span> strPassword <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #800040;">&quot;scripting&quot;</span> <span style="color: #000099; font-weight: bold;">Then</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #2b91af;">MsgBox</span> <span style="color: #800040;">&quot;Correct&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">ElseIf</span> strPassword <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #800040;">&quot; &quot;</span> <span style="color: #000099; font-weight: bold;">Then</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #2b91af;">MsgBox</span> <span style="color: #800040;">&quot;You have to try, silly.&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Else</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	<span style="color: #2b91af;">MsgBox</span> <span style="color: #800040;">&quot;NOPE!&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">End</span> <span style="color: #000099; font-weight: bold;">If</span></div></li></ol></pre></code></div><br /></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Forum Posts are Wider Than My Screen]]></title>
			<link>http://www.windowsscript.com/forums/Thread-Forum-Posts-are-Wider-Than-My-Screen</link>
			<pubDate>Sat, 12 Sep 2009 19:16:58 -0700</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-Forum-Posts-are-Wider-Than-My-Screen</guid>
			<description><![CDATA[I just posted vbscript in Code Bank and the view is beyond my widescreen. I assume the code box made it that way because other posts are not forcing me to scroll horizontal. I use Google Chrome Browser, that maybe the issue. Or maybe you can adjust the tags to post smaller boxes... maybe. I don't know.]]></description>
			<content:encoded><![CDATA[I just posted vbscript in Code Bank and the view is beyond my widescreen. I assume the code box made it that way because other posts are not forcing me to scroll horizontal. I use Google Chrome Browser, that maybe the issue. Or maybe you can adjust the tags to post smaller boxes... maybe. I don't know.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Mr. Chatbot]]></title>
			<link>http://www.windowsscript.com/forums/Thread-Mr-Chatbot</link>
			<pubDate>Sat, 12 Sep 2009 19:12:37 -0700</pubDate>
			<guid isPermaLink="false">http://www.windowsscript.com/forums/Thread-Mr-Chatbot</guid>
			<description><![CDATA[A fun code for the kids. I have been playing with this for awhile. I am an amateur at writing scripts. This works pretty good if you have the correct sapi voices. Run the description code first to see what's on your PC. Probably only works for Microsoft OS though.<br />
<br />
Description Code:<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.infernodevelopment.com'>VBS Programming</a>
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="vbs" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Set</span> VObj <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">CreateObject</span><span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;SAPI.SpVoice&quot;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #000099; font-weight: bold;">For Each</span> Voice <span style="color: #000099; font-weight: bold;">In</span> VObj<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">getvoices</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">     I <span style="color: #0000ff; font-weight: bold;">=</span> I <span style="color: #0000ff; font-weight: bold;">+</span> <span style="color: #ff8000;">1</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">     <span style="color: #2b91af;">msgbox</span> <span style="color: #800040;">&quot;&quot;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #009900;">&#40;</span>I <span style="color: #0000ff; font-weight: bold;">-</span> <span style="color: #ff8000;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> <span style="color: #800040;">&quot; - &quot;</span> <span style="color: #0000ff; font-weight: bold;">&#x26;</span> Voice<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">GetDescription</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #000099; font-weight: bold;">Next</span></div></li></ol></pre></code></div><br /></div><br />
<br />
Mr. Chatbot Code:<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.infernodevelopment.com'>VBSCRIPT Programming</a>
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="vbscript" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Set Vobj = CreateObject(&quot;SAPI.SpVoice&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	 With Vobj</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">strName = InputBox(&quot;Please choose a voice:&quot; &#x26; vbCr &#x26; vbCr &#x26; &quot;Sam&quot; &#x26; vbCr &#x26; &quot;Mike&quot; &#x26; vbCr &#x26; &quot;Mary&quot;, &quot;Question:&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Select Case LCase(strName)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	Case &quot;sam&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Set .voice = .getvoices.item(0)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		.Volume = 100</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">     	        .Rate = -3</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	Case &quot;mike&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Set .voice = .getvoices.item(1)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		.Volume = 100</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">     	        .Rate = -3</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	Case &quot;mary&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Set .voice = .getvoices.item(2)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		.Volume = 100</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">     	        .Rate = -3</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	'Case &quot;Sample TTS&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	'	Set .voice = .getvoices.item(3)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	'	.Volume = 100</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">       ' 	.Rate = -3</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	Case &quot;&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		WScript.echo &quot;please type a name:&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">End Select</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;Hello, my name is &quot; &#x26; strName &#x26; &quot;. I am a chatbot. Jim created me. What's your name?&quot;'&quot;O.K. See you later then, &quot; &#x26; fname &#x26; &quot;.&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	fname=InputBox(&quot;What's your name?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;How are you feeling, &quot; &#x26; fname &#x26; &quot;?&quot; '&quot;O.K. See you later then, &quot; &#x26; fname &#x26; &quot;.&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	ffeeling=InputBox(&quot;How are you feeling?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;Why are you feeling &quot; &#x26; ffeeling &#x26; &quot;?&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	fanswer=InputBox(&quot;Why are you feeling &quot; &#x26; ffeeling &#x26; &quot;?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;Sometimes I feel like that too. What's your favorite color, &quot; &#x26; fname &#x26; &quot;?&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	fcolor=InputBox(&quot;What's your favorite color?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;I like &quot; &#x26; fcolor &#x26; &quot;, too. What's your favorite number &quot; &#x26; fname &#x26; &quot;?&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	fnumber=InputBox(&quot;What's your favorite number?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = (fnumber &#x26; &quot; is my favorite number too, &quot; &#x26; fname &#x26; &quot;That  is  so  Cool.  We  have  a  lot  in  common.  What  else  do  you  like?&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	felse=InputBox(&quot;What  else  do  you  like?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;I like &quot; &#x26; felse &#x26;  &quot;too. What is your favorite food, &quot; &#x26; fname &#x26; &quot;?&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	ffood=InputBox(&quot;What is your favorite food?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;I don't like &quot; &#x26; ffood &#x26; &quot;. I  am  a  computer.  I can't eat food. What is your favorite movie?&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	fmovie=InputBox(&quot;What's your favorite movie?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;Sometimes I have movies on me. I don't think I have ever seen &quot; &#x26; fmovie &#x26; &quot;. What is your favorite sport &quot; &#x26; fname</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	fsport=InputBox(&quot;What is your favorite sport?&quot; , &quot;Mr. chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;I can't play &quot; &#x26; fsport &#x26; &quot;I am a computer.  I  would  rather  surf the  internet. When you play &quot; &#x26; fsport &#x26; &quot;you must get thirsty. What is your favorite drink?&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	fdrink=InputBox(&quot;What is your favorite drink?&quot; , &quot;Mr. Chatbot&quot;)	</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;Is &quot; &#x26; fdrink &#x26; &quot;good? Because I can't have fluids. Or  I  Would  Blow  Up. What's your favorite game to play?&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	fgame=InputBox(&quot;What's your favorite game to play?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;I have games on me that you could play some day. I don't know if I have &quot; &#x26; fgame &#x26; &quot;on me but you could look sometime. &quot; &#x26; fname &#x26; &quot;Did you like talking to me?&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	flike=InputBox(&quot;Did you like talking to me?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;O.K. See you later then, &quot; &#x26; fname &#x26; &quot;. I will always be here if you need some one to talk to.&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	MsgBox(&quot;GoodBye, &quot; &#x26; fname &#x26; &quot;!!!&quot;) , , &quot;Mr. Chatbot&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">End With</div></li></ol></pre></code></div><br /></div>]]></description>
			<content:encoded><![CDATA[A fun code for the kids. I have been playing with this for awhile. I am an amateur at writing scripts. This works pretty good if you have the correct sapi voices. Run the description code first to see what's on your PC. Probably only works for Microsoft OS though.<br />
<br />
Description Code:<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.infernodevelopment.com'>VBS Programming</a>
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="vbs" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000099; font-weight: bold;">Set</span> VObj <span style="color: #0000ff; font-weight: bold;">=</span> <span style="color: #2b91af;">CreateObject</span><span style="color: #009900;">&#40;</span><span style="color: #800040;">&quot;SAPI.SpVoice&quot;</span><span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #000099; font-weight: bold;">For Each</span> Voice <span style="color: #000099; font-weight: bold;">In</span> VObj<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">getvoices</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">     I <span style="color: #0000ff; font-weight: bold;">=</span> I <span style="color: #0000ff; font-weight: bold;">+</span> <span style="color: #ff8000;">1</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">     <span style="color: #2b91af;">msgbox</span> <span style="color: #800040;">&quot;&quot;</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #009900;">&#40;</span>I <span style="color: #0000ff; font-weight: bold;">-</span> <span style="color: #ff8000;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #0000ff; font-weight: bold;">&</span> <span style="color: #800040;">&quot; - &quot;</span> <span style="color: #0000ff; font-weight: bold;">&</span> Voice<span style="color: #0000ff; font-weight: bold;">.</span><span style="color: #b1b100;">GetDescription</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #000099; font-weight: bold;">Next</span></div></li></ol></pre></code></div><br /></div><br />
<br />
Mr. Chatbot Code:<br />
<div class="geshicode_h" style='padding: 5px; background-color: #DFDFDF; border: 1px solid #AAAAAA;'>&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.infernodevelopment.com'>VBSCRIPT Programming</a>
	<div class="geshicode_b" style='background-color: #FFFFFF; padding-left: 5px; border: 1px solid #BBBBBB;'><code><pre class="vbscript" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Set Vobj = CreateObject(&quot;SAPI.SpVoice&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	 With Vobj</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">strName = InputBox(&quot;Please choose a voice:&quot; & vbCr & vbCr & &quot;Sam&quot; & vbCr & &quot;Mike&quot; & vbCr & &quot;Mary&quot;, &quot;Question:&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Select Case LCase(strName)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	Case &quot;sam&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Set .voice = .getvoices.item(0)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		.Volume = 100</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">     	        .Rate = -3</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	Case &quot;mike&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Set .voice = .getvoices.item(1)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		.Volume = 100</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">     	        .Rate = -3</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	Case &quot;mary&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Set .voice = .getvoices.item(2)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		.Volume = 100</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">     	        .Rate = -3</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	'Case &quot;Sample TTS&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	'	Set .voice = .getvoices.item(3)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	'	.Volume = 100</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">       ' 	.Rate = -3</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	Case &quot;&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		WScript.echo &quot;please type a name:&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">End Select</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;Hello, my name is &quot; & strName & &quot;. I am a chatbot. Jim created me. What's your name?&quot;'&quot;O.K. See you later then, &quot; & fname & &quot;.&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	fname=InputBox(&quot;What's your name?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;How are you feeling, &quot; & fname & &quot;?&quot; '&quot;O.K. See you later then, &quot; & fname & &quot;.&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	ffeeling=InputBox(&quot;How are you feeling?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;Why are you feeling &quot; & ffeeling & &quot;?&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	fanswer=InputBox(&quot;Why are you feeling &quot; & ffeeling & &quot;?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;Sometimes I feel like that too. What's your favorite color, &quot; & fname & &quot;?&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	fcolor=InputBox(&quot;What's your favorite color?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;I like &quot; & fcolor & &quot;, too. What's your favorite number &quot; & fname & &quot;?&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	fnumber=InputBox(&quot;What's your favorite number?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = (fnumber & &quot; is my favorite number too, &quot; & fname & &quot;That  is  so  Cool.  We  have  a  lot  in  common.  What  else  do  you  like?&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	felse=InputBox(&quot;What  else  do  you  like?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;I like &quot; & felse &  &quot;too. What is your favorite food, &quot; & fname & &quot;?&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	ffood=InputBox(&quot;What is your favorite food?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;I don't like &quot; & ffood & &quot;. I  am  a  computer.  I can't eat food. What is your favorite movie?&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	fmovie=InputBox(&quot;What's your favorite movie?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;Sometimes I have movies on me. I don't think I have ever seen &quot; & fmovie & &quot;. What is your favorite sport &quot; & fname</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	fsport=InputBox(&quot;What is your favorite sport?&quot; , &quot;Mr. chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;I can't play &quot; & fsport & &quot;I am a computer.  I  would  rather  surf the  internet. When you play &quot; & fsport & &quot;you must get thirsty. What is your favorite drink?&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	fdrink=InputBox(&quot;What is your favorite drink?&quot; , &quot;Mr. Chatbot&quot;)	</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;Is &quot; & fdrink & &quot;good? Because I can't have fluids. Or  I  Would  Blow  Up. What's your favorite game to play?&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	fgame=InputBox(&quot;What's your favorite game to play?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;I have games on me that you could play some day. I don't know if I have &quot; & fgame & &quot;on me but you could look sometime. &quot; & fname & &quot;Did you like talking to me?&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	flike=InputBox(&quot;Did you like talking to me?&quot; , &quot;Mr. Chatbot&quot;)</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		strText = &quot;O.K. See you later then, &quot; & fname & &quot;. I will always be here if you need some one to talk to.&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">		Vobj.speak strText</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">	MsgBox(&quot;GoodBye, &quot; & fname & &quot;!!!&quot;) , , &quot;Mr. Chatbot&quot;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">End With</div></li></ol></pre></code></div><br /></div>]]></content:encoded>
		</item>
	</channel>
</rss>