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

newbie using rebol to call windows commandline

 [1/6] from: bry:itnisk at: 5-Apr-2002 11:28


I was just wondering if there are any basic examples(not using Rebol Command, I'm using Rebol View) of calling cmd.exe from rebol, and following the process?

 [2/6] from: petr:krenzelok:trz:cz at: 5-Apr-2002 13:58


Bryan Rasmussen wrote:
>I was just wondering if there are any basic examples(not using Rebol >Command, I'm using Rebol View) of calling cmd.exe from rebol, and following >the process? >
you can't imo call any external app from Rebol, unless you have /Command or /Pro version .... -pekr-

 [3/6] from: bry:itnisk at: 5-Apr-2002 14:48


>You must have a license key with rebol/view/pro for the /pro features >(like shell access). >I am using Win2k and this opens a console window: > call "cmd.exe"
thanks doubt I can get my boss to okay this until there's something being produced that's useful, a catch-22 I'm thinking what I could do is write a wscript from rebol, save it, open it, the wscript runs cmd.exe, could I suppose do the same with .bat files etc. Obviously a limited solution
>What do you mean "following the process"?
I was thinking along the lines of a process handler, /wait is fine, I suppose in Rebol core there's no way but is there in command a way to tell what came out on the other end, i.e start.r starts a process, a window, what does this process do? does it start another process?

 [4/6] from: anton:lexicon at: 5-Apr-2002 21:56


> I was just wondering if there are any basic examples(not using Rebol > Command, I'm using Rebol View) of calling cmd.exe from rebol, and > following > the process?
You must have a license key with rebol/view/pro for the /pro features (like shell access). I am using Win2k and this opens a console window: call "cmd.exe" What do you mean "following the process"? call has some refinements that might do what you want: /wait -- Runs command and waits for exit To get help on call (or any other function), use ? call Anton.

 [5/6] from: james::mustard::co::nz at: 6-Apr-2002 1:27


Hi Bryan, re: Subject: [REBOL] newbie using rebol to call windows commandline
> I was just wondering if there are any basic examples(not using Rebol > Command, I'm using Rebol View) of calling cmd.exe from rebol, and
following
> the process?
you can always use the browse trick: browse "C:/winnt/system32/cmd.exe" Depending on your security settings this will either auto-run (horribly insecure) or prompt you whether to open, save, or cancel. This same system can be used to run *.vbs scripts via the 'windows scripting host' using Explorer as a pass-thru launcher (Explorer stays hidden). /----------Example hello world vbs script----------------- Set WSHShell = WScript.CreateObject("WScript.Shell") wshshell.run "CMD.EXE" WScript.Sleep 10 WshShell.SendKeys "Hello World" ... /---------------------------------------------------------- Regards, James

 [6/6] from: ljurado:bariloche:ar at: 5-Apr-2002 14:06


Look at : ( Rebol/View Desktop): rebol.com/library/shell/launch-ext42.r or ( Web): http://www.reboltech.com/library/script-shell.html or Author Site (Web): http://flyingparty.com/deadzaphod/ Luis