There are some files that are able to detect trailing parameters when used with Command Prompt or Task Scheduler. Is there any way to apply a set of parameters in a Macro Application and have the system able to detect them within the code?
Thanks for reading.
Parameters with Macro Application
Moderators: Dorian (MJT support), JRL
Re: Parameters with Macro Application
I saw that link, and then I also tried to enter parameters into an executable file (that is compiled). It works from what I see, but one thing I would like to know is, in case a certain parameter is omitted, how do I give it a default setting?
PPQ
Re: Parameters with Macro Application
You would use the Assigned> function. Put code similar to this at the top of your script. Assigned> checks to see if the variable name has been given a value and returns "FALSE" if it has not.
Code: Select all
Assigned>parameter_1,result
If>result=FALSE
Let>parameter_1=default value
EndIf