windows - why "dir /B file.eps|del " is wrong? -


there file named "file.eps" in current directory, , want delete file. know can simple use

del file.eps 

but can't understand why

dir /b file.eps|del 

didn't work. dir /b file.eps gives file, , should transferred del through pipe.

del can't use inputs list or redirective.

for example, file list.txt including filenames deleted, can't processed in way del < list.txt.

so, syntax correct, problem del.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -