<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:s="http://www.techrepublic.com/search" xmlns:dc="http://purl.org/dc/elements/1.1/"  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
    <title><![CDATA[Questions & Answers: VBScript - Expected Loop ]]></title>
    <link><![CDATA[http://www.techrepublic.com/forum/questions/101-346900/vbscript-expected-loop]]></link>
    <atom:link rel="hub" type="application/rss+xml" href="http://pubsubhubbub.appspot.com/" />
    <atom:link rel="self" type="application/rss+xml" href="http://www.techrepublic.com/forum/questions/101-346900/rss" />

    <description><![CDATA[]]></description>
    <language>en-us</language>
    <lastBuildDate>2013-05-22T13:57:40-07:00</lastBuildDate>
             

    <item>
        <title><![CDATA[Return After Then]]></title>
        <link><![CDATA[http://www.techrepublic.com/forum/questions/101-346900/vbscript-expected-loop?#msg-3479242]]></link>
        <description><![CDATA[Put a return at the end of the word &quot;Then&quot;.ie If Err.Number  0 ThenobjCreateFile.Write(shelfPath + &quot; can't be reached&quot;)Else]]></description>
        <guid><![CDATA[http://www.techrepublic.com/forum/questions/101-346900/vbscript-expected-loop?#msg-3479242]]></guid>
        <dc:creator><![CDATA[dogknees]]></dc:creator>
        <pubDate>Mon, 01 Aug 2011 18:20:10 -0700</pubDate>
    </item>
             

    <item>
        <title><![CDATA[Request for Clarification]]></title>
        <link><![CDATA[http://www.techrepublic.com/forum/questions/101-346900/vbscript-expected-loop?#msg-3479095]]></link>
        <description><![CDATA[what is objCreateFile?   not enough info provided by you, or perhaps the obvious problem if this is your complete script is you haven't defined objCreateFile.]]></description>
        <guid><![CDATA[http://www.techrepublic.com/forum/questions/101-346900/vbscript-expected-loop?#msg-3479095]]></guid>
        <dc:creator><![CDATA[danekan]]></dc:creator>
        <pubDate>Mon, 01 Aug 2011 12:16:35 -0700</pubDate>
    </item>
             

    <item>
        <title><![CDATA[VBScript - Expected Loop]]></title>
        <link><![CDATA[http://www.techrepublic.com/forum/questions/101-346900/vbscript-expected-loop?#msg-3479044]]></link>
        <description><![CDATA[I've a little script that checks for the existence of a file share and if it exists checks for the most recent file.  I'm running into an expected Loop error within one area of the code and am hoping someone can give me a hand.  The error appears after the If statement starts but before the Else.  I tried adding a Loop prior to the Else but that gave a syntax error.Do Until objFile.AtEndOfStreamshelfPath = objFile.ReadLinei = i + 1WshNetwork.MapNetworkDrive driveLetter, shelfPathIf Err.Number  0 Then objCreateFile.Write(shelfPath + &quot; can't be reached&quot;)Elsecall checkShelfEnd IfLoop]]></description>
        <guid><![CDATA[http://www.techrepublic.com/forum/questions/101-346900/vbscript-expected-loop?#msg-3479044]]></guid>
        <dc:creator><![CDATA[AlAckley]]></dc:creator>
        <pubDate>Mon, 01 Aug 2011 10:04:06 -0700</pubDate>
    </item>
    </channel>
</rss>

