#37205 - 2003-03-03 04:36 PM
Re: Problems with error messages
|
Jtel
Fresh Scripter
Registered: 2002-04-13
Posts: 41
|
Jens, thanks for the constructive criticism. As for the badly coded script – give me a break , this is only one small section of it – I didn’t see the need to post the entire script. There are checks for OS type, current service pack level, installed hotfixes, and admin privileges.
Why use a UNC instead of a mapped drive? In this case, the drive was mapped to the closest and fastest server out of a pool of 10 across the country (part of the script not included in the original post). There will always be a drive mapped to one of these servers – if for some reason one server was not available, it would map to the next closest one. This way the drive letter and source files remain the same and there are no issues with remembered UNCs that might not exist for any given reason.
I’ll take your advice on the WRITELINE for writing to the error log.
If you don’t mind, explain why GOTO shouldn’t be used and what is the best way to accomplish the task.
Thanks
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 952 anonymous users online.
|
|
|