sugi Posted June 16, 2004 Share 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? Link to comment Share on other sites More sharing options...
Valik Posted June 16, 2004 Share Posted June 16, 2004 Should be: If Not (@CompuerName = $NewComputerName) Then ... or If @ComputerName <> $NewComputerName Then ... Link to comment Share on other sites More sharing options...
sugi Posted June 16, 2004 Author Share Posted June 16, 2004 I knew it was something stupid... not @ComputerName = 1 (1 = $NewComputerName) = 0... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now