needadonut
Technical User
- Jul 22, 2013
- 4
I am fairly new to vbscript, and have been experimenting with mashing together 2 different scripts. Well, of course things didnt work (Stupid me) and im not experienced enough to fix them. Heres the code:
dim password
dim objshell
dim answer
password="airvent1"
do
ask=inputbox("Enter password below","Security System","Enter Password")
select case ask
case password
answer=true
x=msgbox("Password accepted",0,"Password accepted")
'objShell.Run("""J:\Program Files\Mozilla Firefox\firefox.exe""")
Set objShell = Nothing
wscript.quit
end select
answer=false
x=msgbox("Access Denied",16,"Access Denied")
if vbOk then wscript.quit
loop until answer=true
PROBLEM: The application isnt starting. No error message or anything. I type the password, the "password accepted" box comes up, then the script ends. Please help me.
Please excuse me for my inexperienced-ness
dim password
dim objshell
dim answer
password="airvent1"
do
ask=inputbox("Enter password below","Security System","Enter Password")
select case ask
case password
answer=true
x=msgbox("Password accepted",0,"Password accepted")
'objShell.Run("""J:\Program Files\Mozilla Firefox\firefox.exe""")
Set objShell = Nothing
wscript.quit
end select
answer=false
x=msgbox("Access Denied",16,"Access Denied")
if vbOk then wscript.quit
loop until answer=true
PROBLEM: The application isnt starting. No error message or anything. I type the password, the "password accepted" box comes up, then the script ends. Please help me.
Please excuse me for my inexperienced-ness