Arturo Garcia wrote in post #963497: > On Wednesday 24 November 2010 08:03:59 Fengfeng Li wrote: >> [... ... ...] >> cmd = "del *.zip" >> Process.create( >> >> :app_name => cmd, >> :startup_info=> {:sw_flags=>Process::SW_HIDE , :startf_flags => >> >> Process::STARTF_USESHOWWINDOW} ) > Is "del" is an actual executable? It used to be in old DOS but Mr. > Windows > has a history of change.... I use fileUtils.chdir(dir) to change to a dir in which .zip files exist, then I can use system("del *.zip") to del them, but Process.create() will report an error. Maybe because fileUtils.chdir(dir) doesn't work for Process.create()? -- Posted via http://www.ruby-forum.com/.