How to delete file by file with batch

خرید بک لینک

For your batch file change %f to %%f

you dont need the touch command it's from gnuwin32 or cygwin, I used it to create 3 files, q w and e.

C:blah>touch q w e<ENTER>

C:blah>for %f in (*.*) do @(echo deleting %f & del %f)
deleting e
deleting q
deleting w

C:blah>

note- to understand it or do it from scratch try for %f in (*.*) do echo %f and one can work it out from there.

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 307 تاريخ: دوشنبه 4 مرداد 1395 ساعت: 12:31

صفحه بندی