samedi 20 août 2016

How do I check if arguments are called to a vbscript?

I tried using an if statement but I got an error, Subscript out of range, I know why I got the error. How do I check if an argument(s) is called to a vbscript script.

if args.count > -1 then
  exec(args(0)) 'exec is a function that I defined. I know this is working.
  wscript.quit
end if

Aucun commentaire:

Enregistrer un commentaire