[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2008-06-11
5
Medium Priority
?
1,257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 35

Accepted Solution

by:
mvidas earned 1000 total points
ID: 21760989
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
ID: 21761879
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
ID: 21761927
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
ID: 31466181
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
ID: 21762108
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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

656 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