if I try to call a mocro like:
C:\Program Files\Macro Scheduler\msched.exe
How can I pick up that argument in the macro for use by vbscript ?
________
MAINE MEDICAL MARIJUANA DISPENSARY
pass an argument into macro
Moderators: Dorian (MJT support), JRL
- webber123456
- Newbie
- Posts: 11
- Joined: Thu Aug 04, 2005 10:06 pm
pass an argument into macro
Last edited by webber123456 on Thu Feb 10, 2011 9:37 pm, edited 1 time in total.
You need to call the macro like this:
...\msched.exe macroname /paramater=value1
And you simply refer to paramater in the script as a variable. It will hold the value of value1. E.g: Say you have this script:
MessageModal>Hello %name%
And call it with:
msched.exe script.scp /name=Fred
The script would then pop up a message box saying "Hello Fred".
You can have any number of parameters on the command line. E.g.:
msched.exe script.scp /var1=val1 /var2=val2 /var2=val3 /etc=etc
...\msched.exe macroname /paramater=value1
And you simply refer to paramater in the script as a variable. It will hold the value of value1. E.g: Say you have this script:
MessageModal>Hello %name%
And call it with:
msched.exe script.scp /name=Fred
The script would then pop up a message box saying "Hello Fred".
You can have any number of parameters on the command line. E.g.:
msched.exe script.scp /var1=val1 /var2=val2 /var2=val3 /etc=etc
MJT Net Support
[email protected]
[email protected]