BUcKeT July 15, 2010 at 01:10:06 Specs: Windows XP, 2gb
Can I redirect(pipe) more than two commands in dos? eg. I got this command: dir /s /b | find /I "John" which outputs a list of all dir/files which contains John, now I want to use that output and run it through del. something like dir /s /b | find /I "john" | del but this doesn't work. Any ideas?
EDIT: Assuming you want to delete any file with "John" in the name, and not every file in some folder with "John" in it, as well as every file with "John" in its name. If not, stick with nbrane's script.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.