From: Robert Klemme Date: 2007-03-17T06:35:08+09:00 Subject: Re: Executing shell commands from Ruby... again. On 16.03.2007 21:58, Jan Friedrich wrote: > Kevin Skrenes schrieb: >> I need to do this on a Windows machine, so a typical batch file might be >> constructed like this: >> >> echo off >> cd path\executabledir >> -S >> >> where anything in <> needs to be dynamically populated. > How about this: > > # -- BEGIN OF EXAMPLE > > # setting command, param, input, output > # ... > cmd = < echo off > cd path\executabledir > #{command} -S #{param} #{input} #{output} > END_OF_STRING > > system(cmd) > > # -- END OF EXAMPLE You can even combine that: system <