parse VAR on start compiled script

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
wil
Junior Coder
Posts: 25
Joined: Mon Dec 06, 2010 6:00 pm

parse VAR on start compiled script

Post by wil » Sat Feb 02, 2013 5:47 am

Hello,

Is it possible to start a compiled script included a parameter?
For example from a dos command: "script.exe "

Next I want the script determine what value the parameter has.
I'm thinking of something in the code:

"parse arguments var parm"

thnx in advance, wil

User avatar
JRL
Automation Wizard
Posts: 3517
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Sat Feb 02, 2013 7:00 am

For example from a dos command: "script.exe /parameter=10"

Script.exe contains:

Code: Select all

Let>answer=%parameter%*88
MDL>answer

wil
Junior Coder
Posts: 25
Joined: Mon Dec 06, 2010 6:00 pm

Post by wil » Sat Feb 02, 2013 1:47 pm

Thnx, JRL. This works.

wil

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts