Time:09-23
Option Explicit Dim the PWD, password, ws Set the ws=CreateObject (" WScript. Shell ") The PWD=InputBox (" set the SQL password: ") Password=InputBox (" confirm password: SQL ") If SAPWD=password then Ws. The exec "setup. Exe SAPWD=PWD SECURITYMODE=SQL" The else Msgbox "two input inconsistent" End the If
CodePudding user response:
SAPWD add parentheses ()
Option Explicit Dim the PWD, password, ws Set the ws=CreateObject (" WScript. Shell ") The PWD=InputBox (" set the SQL password: ") Password=InputBox (" confirm password: SQL ") If the PWD=password then Ws. The exec "setup.exe (SAPWD=PWD SECURITYMODE=SQL" The else Msgbox "two input inconsistent" End the If
Option Explicit Dim the PWD, password, ws Set the ws=CreateObject (" WScript. Shell ") The PWD=InputBox (" set the SQL password: ") Password=InputBox (" confirm password: SQL ") If the PWD=password then Ws. The exec "setup. Exe SAPWD=" & amp; The PWD & amp; "SECURITYMODE=SQL" The else Msgbox "two input inconsistent" End the If
Page link:https//www.codepudding.com/Softwareengineering/25011.html