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

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
bstillionAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
mvidasConnect With a Mentor Commented:
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
 
bstillionAuthor Commented:
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
 
bstillionAuthor Commented:
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
 
bstillionAuthor Commented:
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
 
mvidasCommented:
Glad to help! Don't hesitate to ask if you need any more help, if I can assist I will :)

Matt
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.