vbscript - run as administrator password contain tilde -


how can use special character password mine have tilde in password ka$$1001~1

here script below, i'm unable run script.

set wshshell = wscript.createobject("wscript.shell")  wshshell.run "runas /user:administrator92 " & chr(34) & & chr(34) wscript.sleep 1000  wshshell.sendkeys "ka$$1001~1" 'send password  wshshell.sendkeys "{enter}" 

as documented, ~ shorthand {enter} (the enter key). put special characters in curly braces:

{+} {^} {%} {~} {(} {)} {[} {]} {{} {}}

so line following:

wshshell.sendkeys "ka$$1001{~}1" 'send password  

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -