Page 1 of 1

Calling external programs

Posted: Mon May 23, 2011 9:38 pm
by dan.hutch
Hi all,

I've created some buttons in my project which I use to call several external programs, all are command line programs which I am passing arguments to e.g. wget. Problem is I want the programs to be called from C: rather than PRODIR:Programs/ so that the project can use the commands from the user's C: directory. Is it possible to stop Designer's default behaviour of copying the program to be used in the Programs drawer?

I can edit the script in CodeBench after working in Designer but wondering if there's a better solution I've missed?

Runing Designer 3.0 with Hollywood 4.8 on OS4.1

Thanks.

Re: Calling external programs

Posted: Mon May 23, 2011 10:06 pm
by airsoftsoftwair
Simply use the "Run code" action event and enter something like:

Code: Select all

Execute("C:wget .....")
This allows you to bypass the PROGDIR: limitation of Designer!

Re: Calling external programs

Posted: Mon May 23, 2011 11:49 pm
by dan.hutch
Thanks, works a treat!