From: mail02@... (Frank Benoit) Date: 2002-01-02T09:05:06+09:00 Subject: [ruby-talk:29998] Re: Execing command with backquotes Thanks, this was really a stupid fault. :) But still it doesn't work. :( I tried this: sourcedir = "c:\\temp\\from\\" targetdir = "c:\\temp\\into\\" commandstring = "xcopy /s /e #{sourcedir}*.* #{targetdir}" puts commandstring # Execute print "Excecute : >" returnval = `#{commandstring}` puts "<" # Print Commandoutput puts "Returnvalue: >" + returnval + "<" Here is the output: xcopy /s /e c:\temp\from\*.* c:\temp\into\ Excecute : >< Returnvalue: >< But still there is nothing copied. When I try the command xcopy /s /e c:\temp\from\*.* c:\temp\into\ into console, it works fine.