relative paths in COMPILE_OPTS

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
fazleskhan
Newbie
Posts: 5
Joined: Tue Apr 05, 2016 7:52 pm

relative paths in COMPILE_OPTS

Post by fazleskhan » Fri Apr 08, 2016 7:21 pm

I am using Macro Scheduler Pro to compile some vbscripts that I run on other machines. During compilation the compile directives are appended to the top the scp files and control where the executable is placed during compilation. I would like to use relative paths in the compile directive. For example my directory structure is

/root
/root/src
/root/bin
/root/settings

The scp files are located in the /root/src folder but we want the binaries created in the /root/bin folder. Unfortunately, it seems the compile directive needs to be a hardcoded fully qualified path. Neither relative paths nor system variables seem to work in the directive.

Fazle

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

Re: relative paths in COMPILE_OPTS

Post by JRL » Fri Apr 08, 2016 7:41 pm

Sorry I don't have time at the moment to help you write anything but you can write your own compile script to have a specialized compile.

Open help and do a search for "command line compile" for instructions. Perhaps you can have your compile script acquire the hard path from the relative path then use the hard path for the compile.

Hope this makes sense.

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