<?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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Vbscript converting numeric month to specified letter</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/vbscript-converting-numeric-month-to-specified-letter/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/vbscript-converting-numeric-month-to-specified-letter/</link>
	<description></description>
	<lastBuildDate>Thu, 20 Jun 2013 04:39:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: defector</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/vbscript-converting-numeric-month-to-specified-letter/#comment-72942</link>
		<dc:creator>defector</dc:creator>
		<pubDate>Fri, 22 Jan 2010 23:02:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-72942</guid>
		<description><![CDATA[fantastic!!!!
figured i would recieve an error due to numeric vs. non-numeric.
using the base of Gent01&#039;s changes and your suggestion it works absolutely as expected.
Thanks so much for sharing the knowledge!!
the final code i have for others should they require same or similar is as follows:

Const sWD = &quot;c:Test&quot;
Const sFName = &quot;c:testtest1.csv&quot;
Const sFName2 = &quot;c:testtest2.csv&quot;

Set oFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)
If Not oFSO.FolderExists(sWD) then Error &quot;Cannot locate folder &quot;&quot;&quot; &amp; sWD &amp; &quot;&quot;&quot;&quot;

dYesterday = DateAdd(&quot;d&quot;, -1, Now())
sYesterday = Day(dYesterday) &amp; chr(64 + Month(dYesterday)) &amp; Year(dYesterday)

if not oFSO.FileExists(sFName) then Error &quot;Cannot locate file &quot;&quot;&quot; &amp; sFName &amp; &quot;&quot;&quot;&quot;
if not oFSO.FileExists(sFName2) then Error &quot;Cannot locate file &quot;&quot;&quot; &amp; sFName2 &amp; &quot;&quot;&quot;&quot;

oFSO.MoveFile sFName, sYesterday &amp; &quot;.txt&quot;
oFSO.MoveFile sFName2, sYesterday &amp; &quot;.txt&quot;

Sub Error(sMsg)
MsgBox sMsg
WScript.Quit
End Sub]]></description>
		<content:encoded><![CDATA[<p>fantastic!!!!<br />
figured i would recieve an error due to numeric vs. non-numeric.<br />
using the base of Gent01&#8242;s changes and your suggestion it works absolutely as expected.<br />
Thanks so much for sharing the knowledge!!<br />
the final code i have for others should they require same or similar is as follows:</p>
<p>Const sWD = &#8220;c:Test&#8221;<br />
Const sFName = &#8220;c:testtest1.csv&#8221;<br />
Const sFName2 = &#8220;c:testtest2.csv&#8221;</p>
<p>Set oFSO = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<br />
If Not oFSO.FolderExists(sWD) then Error &#8220;Cannot locate folder &#8220;&#8221;" &amp; sWD &amp; &#8220;&#8221;"&#8221;</p>
<p>dYesterday = DateAdd(&#8220;d&#8221;, -1, Now())<br />
sYesterday = Day(dYesterday) &amp; chr(64 + Month(dYesterday)) &amp; Year(dYesterday)</p>
<p>if not oFSO.FileExists(sFName) then Error &#8220;Cannot locate file &#8220;&#8221;" &amp; sFName &amp; &#8220;&#8221;"&#8221;<br />
if not oFSO.FileExists(sFName2) then Error &#8220;Cannot locate file &#8220;&#8221;" &amp; sFName2 &amp; &#8220;&#8221;"&#8221;</p>
<p>oFSO.MoveFile sFName, sYesterday &amp; &#8220;.txt&#8221;<br />
oFSO.MoveFile sFName2, sYesterday &amp; &#8220;.txt&#8221;</p>
<p>Sub Error(sMsg)<br />
MsgBox sMsg<br />
WScript.Quit<br />
End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/vbscript-converting-numeric-month-to-specified-letter/#comment-72929</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Fri, 22 Jan 2010 17:14:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-72929</guid>
		<description><![CDATA[You are receiving an error because the script is trying to multiply a number and a non-numeric char (i.e 10000 * &quot;A&quot;).

I updated the answer above with another suggestion, using Gent01&#039;s idea.]]></description>
		<content:encoded><![CDATA[<p>You are receiving an error because the script is trying to multiply a number and a non-numeric char (i.e 10000 * &#8220;A&#8221;).</p>
<p>I updated the answer above with another suggestion, using Gent01&#8242;s idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: defector</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/vbscript-converting-numeric-month-to-specified-letter/#comment-72918</link>
		<dc:creator>defector</dc:creator>
		<pubDate>Fri, 22 Jan 2010 13:54:59 +0000</pubDate>
		<guid isPermaLink="false">#comment-72918</guid>
		<description><![CDATA[Hi Gent01

Thanks for the reply and the info. Very clean and simple conversion to ASCII that I wasnt aware of. Very nice
When looking at the code with CHR in place I would recieve an error though with it trying to multiply: 10000 * Chr(64 + Month(dYesterday))]]></description>
		<content:encoded><![CDATA[<p>Hi Gent01</p>
<p>Thanks for the reply and the info. Very clean and simple conversion to ASCII that I wasnt aware of. Very nice<br />
When looking at the code with CHR in place I would recieve an error though with it trying to multiply: 10000 * Chr(64 + Month(dYesterday))</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.012 seconds using memcached
Object Caching 294/297 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-20 06:03:18 -->