Ok so here are the basics .. stuff you should already know ...
You save the files as: something.vbs
It's not like a batch file it doesn't have a screen telling you information.
to make a var you use dim
e.g .. dim iRule
now you would have a variable call iRule
now you can start to add things to you vars .. like:iRule=msgbox("hello")
this would make a message box pop up saying hello. (pic 1)
Along with that you can add different buttons to the message box ..
here is all about message boxes: HERE
so many tutorials on them that i won't even bother to go into them.
Also with vars you can dim vars in an array:dim iRule(3)
but that would turn out like this: (because 0 is included)
iRule(3)="var4"Using vars in the script..
You can use vars easily ..
you could have: (pic 2)
instructables=msgbox("hello " & iRule)
Because of the &
it says 'hello instructables' becuse the value of iRule is instructables.Subs
You can also have subs:
A sub is a procedure that does NOT
give a return value.
The arg 1,2,3 are the Arguments.
That about all of the basics .. enjoy them .. or keep reading for not so basics..