tags:

views:

411

answers:

2

I am using the deltree command which expects the user to confirm with a Y or N.

I tried 'echo Y | deltree ....' but got a "The process tried to write to a nonexistent pipe" error.

Is there another way?

+9  A: 

deltree /Y ...

mgroves
+1  A: 

/S = Removes all directories and files in the specified directory in addition to the directory itself. Used to remove a directory tree.

/Q = Quiet mode, do not ask if OK to remove a directory tree with /S.

sangretu
These options are not available. It seems it's a different deltree.
Tony_Henrich
They are for rd command, it seems
dmityugov