From: Le Wang (nospam) Date: 2002-01-02T08:45:04+09:00 Subject: [ruby-talk:29996] Re: Execing command with backquotes Hi Frank, To insert expressions within back ticks, you need to use #{var}. Now normally you would get a "command not found" type of error, but the variable you've chosen, 'cmd', is the windows (NT) variants shell, so you've started a new shell and it's waiting for some kind of input. I don't think you can get out of a windows shell by pressing control-c... try this: commandString = "xcopy /s /e c:\\A\\*.* c:\\B" msg = `#{commandString}` Hope this helps. -Le On Tue, 01 Jan 2002 22:33:08 GMT, mail02@frankbenoit.de (Frank Benoit) wrote: >Additional Information >I use WinXP > >I checked the environment variables too: >Rubyshell not set >Shell not set >Comspec is set to cmd.exe