System command and silent output?

Im using ruby for a build script here
and im doing things like:

system “del #{filePath} /s /q”

however I dont want to see the result of that, currently it shows a
zillion files on the console output

ive tried to do a system “echo off” but it doesnt change anything.


thanks, works wonderful :slight_smile:

On Jun 29, 2006, at 12:59 PM, Roger J. wrote:


Posted via

If you are using windows, which it looks like, you can do
system “del #{filePath} /s /q >NUL”