Solved

Error 'loop' without 'do' but a 'do while' is there...

Posted on 2008-06-11
5
1,204 Views
Last Modified: 2011-10-19
I printed an old copy and the current copy of the script and cannot see the problem. There is a "Do While" loop in the beginning and the "loop" statement is at the end but the error persists. Attached is a .txt version of the script getting the error.
Any help from "fresh eyes" is greatly appreciated.

NewU.txt
0
Comment
Question by:bstillion
  • 3
  • 2
5 Comments
 
LVL 35

Accepted Solution

by:
mvidas earned 250 total points
Comment Utility
Hi bstillion,

The "fresh eyes" thing definitely can help!

The reason you're getting the error is you have an un-closed If statement on line 227:
       If objFSO.FolderExists(strHomeFolder) Then

Because there is no corresponding End If for that, the Loop you do have can't find it's Do in the same If block.  Not sure where you want to put the End If for that, but that is what is causing the error.

Matt
0
 

Author Comment

by:bstillion
Comment Utility
Matt,
I put an "End If to complete that If statement but the error message
still states I have a 'loop' witout an assoicated 'Do' somewhere.

Any other sytax errors you notice?

I'll keep looking.
Brad
0
 

Author Comment

by:bstillion
Comment Utility
Matt,
Please disregard my last post.
I was fixing the wrong file and now have corrected the .vbs file rather than the .txt file.

My scirpt is working perfectly. Thanks again for you quick analysis and response.

Brad
0
 

Author Closing Comment

by:bstillion
Comment Utility
Matt,
Thanks so much. I'm so close to the end of this script that will save me and the others in the department time and eliminate the tedious task of creating user accounts manually.
Brad
0
 
LVL 35

Expert Comment

by:mvidas
Comment Utility
Glad to help! Don't hesitate to ask if you need any more help, if I can assist I will :)

Matt
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now