sugi 0 Posted June 16, 2004 Either I'm stupid or I've found a bug:$NewComputerName = @ComputerName & 'xx' MsgBox(4096, @ComputerName, $NewComputerName) If Not @ComputerName = $NewComputerName Then MsgBox(4096, 'DING', '') Exit (0) EndIf In my theory, @ComputerName and $NewComputerName are never the same because of the first line. So I should get two message boxes... but no matter what I only get the first one? Share this post Link to post Share on other sites
Valik 478 Posted June 16, 2004 Should be: If Not (@CompuerName = $NewComputerName) Then ... or If @ComputerName <> $NewComputerName Then ... Share this post Link to post Share on other sites
sugi 0 Posted June 16, 2004 I knew it was something stupid... not @ComputerName = 1 (1 = $NewComputerName) = 0... Share this post Link to post Share on other sites