What you are talking about here is command line input, and, not surprisingly, you use the Command function to read it. Do somthing like the following:
MyString = Command
MyString will contain everything to the right of the program name, so you can parse it for "%", "/" or anything else for that matter and then decided what to do.
