| From: Eli Barzilay (eli at barzilay.org) Date: Mon Sep 26 09:55:43 EDT 2005 |
|
On Sep 26, David Hugh-AHD003 wrote:
> For example,
>
> > (display (run-os-command "hello.exe))
> (("hello") 0)
(require (lib "process.ss"))
(define (system/string cmd)
(let ([s (open-output-string)])
(parameterize ([current-output-port s])
(system cmd))
(get-output-string s)))
(printf "Result: ~s\n" (system/string "x.bat"))
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!
| Posted on the users mailing list. |
|