A simple IF ELSE ENDIF would work too in place of the SELECT CASE.

Did you want the % chars in the file for %COMPUTERNAME% to be expanded later or did you want to expand %COMPUTERNAME% before? If you don't want the % in the file, Jooel's use of the @WKSTA macro is cleaner.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.