Calling external programs

Anything related to Hollywood Designer goes in here
Post Reply
User avatar
dan.hutch
Posts: 3
Joined: Wed May 18, 2011 10:07 pm
Contact:

Calling external programs

Post 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.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Calling external programs

Post 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!
User avatar
dan.hutch
Posts: 3
Joined: Wed May 18, 2011 10:07 pm
Contact:

Re: Calling external programs

Post by dan.hutch »

Thanks, works a treat!
Post Reply