launching apps in background

Ken Ray kray at sonsothunder.com
Thu Jul 24 22:08:04 EDT 2003


Slavo,

You can't use a full path with shell() since it doesn't work on the
command line either. You need to "cd" to the folder where the app is and
then execute it using:

  get shell("cd C:\volume\folder & start app.exe")

If you have spaces in the path name or the app you'll have to quote them
(be careful of the & that needs to be passed to shell), as in:

  get shell("cd" && quote & "c:\program files\myapp" & quote && "& start
myapp.exe")

I like to use variables instead:

  put quote & "c:\program files\myapp" & quote into tFolder
  get shell("cd" && tFolder && "& start myapp.exe")

Hope this helps,

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/ 

> -----Original Message-----
> From: metacard-admin at lists.runrev.com 
> [mailto:metacard-admin at lists.runrev.com] On Behalf Of slavko milekic
> Sent: Thursday, July 24, 2003 12:01 AM
> To: metacard at lists.runrev.com
> Subject: launching apps in background
> 
> 
> Hi list,
> 
> I have a problem launching an application (Win 98 environment) in the 
> background using the shell function:
> 
> if I use:
> 
> get shell("C:\volume\folder\app.exe") nothing happens
> 
> using, launch("C:\volume\folder\app.exe") the application is 
> launched but 
> in the foreground...
> 
> any suggestions?  TIA
> 
> Slavko Milekic
> ---------------------------------
> Slavko Milekic, M.D., Ph.D.
> Assoc. Prof. of Cognitive Science & Digital Design
> Dept. of Art Education & Art Therapy
> The University of the Arts
> 320 S. Broad St., Philadelphia, PA 19102
> tel: 215-717-6052 // fax: 775-521-0930 // smilekic at uarts.edu 
> www.uarts.edu/faculty/smilekic
> 
> ---------------------------------
> 
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com 
> http://lists.runrev.com/mailman/listinfo/metac> ard
> 





More information about the metacard mailing list