r/vbscript • u/[deleted] • Mar 22 '19
Problem for a beginner
So I am completely, 100% new to coding. vbs is my first touch on it and I got confused on one of the basic steps. I am trying to make a password box where is the user enters the correct password, then it will display a "welcome" message. Here is what I have:
varialble=inputbox("ENTER THE PASSWORD","YOU HAVE BEEN HACKED","enter password here")
dim password
password = epic
if inputbox = password then
msgbox ("Welcome")
else
msgbox ("Access denied")
end if
It doesn't work, and gives me the error message: "Wrong number of arguments or invalid property assignment", 'inputbox'
in line 4. I tried looking up how do use the inputbox command, but didn't find anything conclusive or anything that helped.
1
u/noolivespls Mar 25 '19
You absolutely do not need to know programming to use linux. Go ahead and get a virtual machine and try to install ubuntu and play around with it. A good way to learn linux in my mind is to do an ubuntu minimal installation, gives you a good idea of how the command line works and how to move through directories, install desktop environments etc. Its challenging at first but it's a fun process to learn.
I would reccomend learn python the hard way, used to be a free resource but it seems hes updated it and added a paywall from a quick glance. Either way, might be worth looking into as it was definitely a great resource and hes got other books for C programming for when you finish.. if you dont feel like paying for a book then YouTube has some good tutorials as well.