Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript: my script skips processing the code in between start and finish.

Status
Not open for further replies.

svTekTips

Programmer
Oct 11, 2013
1
US
I need some direction...

The Problem:
My VBScript skips processing the code between the beginning and end.


Characteristics and what has been tried:

My script will launch and end successfully without error but it doesn't process the steps in between. This issue:

• Only happens for some users but not others

• Doesn't happen on other scripts (over 200) that these same users run

• The script should error in theory if it cannot process the code in between the beginning and end.

• When I step through it works fine, when I just run it - it works fine.

• I've added delays in the processing in case it processes too fast and it still skip for users.

Any thoughts or ideas would be welcomed!
 
I can't think of a circumstance that would cause the problem you are describing other than a code logic problem. Are you certain there is no "on error resume next" in play? not that it would cause a script to terminate, but when runtime errors are suppressed and not trapped, weird things can happen.

I would add logging to the file and examine which lines of code got executed when the problem happens
 
>My script will launch and end successfully

Sure it is your script that is running? Is it possible that something else with the same name is running instead?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top