Calling external programs

Anything related to Hollywood Designer goes in here

Calling external programs

Postby dan.hutch » Mon May 23, 2011 9:38 pm

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

Re: Calling external programs

Postby airsoftsoftwair » Mon May 23, 2011 10:06 pm

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
airsoftsoftwair
 
Posts: 2025
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: Calling external programs

Postby dan.hutch » Mon May 23, 2011 11:49 pm

Thanks, works a treat!
User avatar
dan.hutch
 
Posts: 3
Joined: Wed May 18, 2011 10:07 pm


Return to General questions

Who is online

Users browsing this forum: No registered users and 1 guest