Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[ALLY] Re: View/Pro - How do I run a system command?

 [1/5] from: petr::krenzelok::trz::cz at: 11-Apr-2001 10:04


Librarian comment

Call is now available in all versions of Rebol not just command and 
view/pro.
Philip Bevan wrote:
> Hi Allies, > > just upgraded to Rebol/View/pro !!!!! > > Could someone give me an example of how to run a system command in Win98 > (ie run a script or an executable).
call "start c:\amipro\amipro.exe" ; note system specific convention ... also - parameter to function is a string ... hth, -pekr-

 [2/5] from: coussement:c:itc:mil:be at: 11-Apr-2001 10:09


Hi Phil: I use /Command and I assume it's using the same core than /View/Pro. So try:
>> help call
USAGE: CALL cmd /input in /output out /error err /wait /console /shell DESCRIPTION: Runs another process. CALL is a native value. ARGUMENTS: cmd -- The process request (Type: string block) REFINEMENTS: /input -- Redirects in to stdin in -- (Type: any-string port file url none) /output -- Redirects stdout to out out -- (Type: string port file url none) /error -- Redirects stderr to err err -- (Type: string port file url none) /wait -- Runs command and waits for exit /console -- Runs command with I/O redirected to console /shell -- Forces command to be run from shell. Example:
>> call "d:\Program Files\Plus!\Microsoft Internet\IEXPLORE.EXE
http://127.0.0.1/standby.html" Hope this helps ! chr==

 [3/5] from: tbrownell:yah:oo at: 11-Apr-2001 10:15


Here's an example that will launch notepad. view layout [ button "Notepad" [ call ["notepad.exe"]] ] Philip Bevan <[philb--upnaway--com]> wrote: Hi Allies, just upgraded to Rebol/View/pro !!!!! Could someone give me an example of how to run a system command in Win98 (ie run a script or an executable). Cheers Phil

 [4/5] from: philb:upnaway at: 11-Apr-2001 16:01


Hi Allies, just upgraded to Rebol/View/pro !!!!! Could someone give me an example of how to run a system command in Win98 (ie run a script or an executable). Cheers Phil

 [5/5] from: philb:upnaway at: 12-Apr-2001 7:18


Hi Allies, that works fine .... Cheers Guys