I want to use a batch processing command to delete files. The file name is: xyz.com. How can I delete all xyz.com under the specified drive letter??? Thanks everyone, thank you.
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Originally posted by xtay1625 at 2006-11-16 02:40:
It seems that none can be deleted normally, but thank you all the same
Originally posted by NaturalJ0 at 2006-11-16 03:33:
del /s /f xyz.com
Is this okay?
Originally posted by ccwan at 2006-11-16 03:45:
It seems to only support the current path.
Tried it, when the batch file is in the root directory, it works completely, but if it is in a subdirectory, it cannot delete files in the parent directory.
[ Last edited by ccwan on 2006-1 ...
Originally posted by lxmxn at 2006-11-15 03:55 PM:
Add a drive letter: del /s/f c:\abc.cba
Originally posted by wu9910 at 2006-11-21 02:41 AM:
for %%i in (xyz.com) do del c:\%%i /a/s/f
for %%i in (xyz.com) do del d:\%%i /a/s/f
for %%i in (xyz.com) do del e:\%%i /a/s/f
for %%i in (xyz.com) do del f:\%%i /a/s/f
for %%i in (xyz.com) do d ...