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

[REBOL] Re: call/output to string bug in Windows

From: tbrownell:l3technology at: 27-Feb-2003 9:56

Aye, that Dos window is a pain. There may be a way to do shell calls using the Windows ShellExecute API, but from what I see, it can only be used to launch applications, open a browser to a URL (this must be what "Browse" uses.) Find a copy of the API below... But how to use this to do a shell command, WITH output to a string! ?? ;----------------- rebol [] a: %/c/windows/system32/shell32.dll b: load/library a c: "ShellExecuteA" r: make routine! [ hwnd [integer!] lpOperation [string!] lpFile [string!] lParameters [string!] lpDirectory [string!] nShowCmd [integer!] ] b c view layout [ btn "Rebol" [r 0 "open" "" "" "" 1] btn "Word Doc" [r 0 "open" "c:\whatever.doc" "" "" 1] btn "More Info" [browse]] ;Where lpFile is the program (or file ) you wish to launch. ;---------------