|
First of all, as a programmer I agree that “On Error Resume Next” is a last resort and usually hides bugs that should be fixed. We just had a recent problem that needed a quick fix until we could audit our scripts.
We're using v4.22 of Kixtart.
We have a large user/server base and we've divided up the drive mapping scripts into several sub scripts based on the server they generally map most of the drives to. This was done for speed and manageability.
Unfortunately we inherited this design from contractors during a conversion and for the most part this has worked great for us for years, but it does have the problem if the @USERID doesn’t show up as a label it errors out.
If we can use something other than goto without radically changing the design, I’m all for it.
Here’s a sample of our user drive mapping script….
So each user drive mapping script is in the format:
GOTO "@USERID" RETURN
; Some User :someuser SHELL "NET USE P: \\someserver\share" SHELL "NET USE S: \\anotherserver\SHARED" RETURN
; Another User :anotheruser SHELL "NET USE P: \\someserver\share" SHELL "NET USE S: \\anotherserver\SHARED" RETURN
;etc ;etc
|