How to use batch file to delete all files from c & d drive?

2013-11-22 8:34 pm
I want to write a batch file that can be deleted all files from c & d drive. Please check if my program work or not. See below my code:

@echo off
del c:*.*
del d:*.*

回答 (1)

2013-11-23 12:31 am
✔ 最佳答案
If you run this from C - it will delete itself before finishing. that's ok since it will run in RAM, but how will you know when it is done - if it is really done? You'll have little or no way to check the disks.

Besides, why bother to delete each file individually? FDisk is more efficient, other "scrubbers" will prevent recovery.


收錄日期: 2021-05-01 01:03:47
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20131122123445AA5XZFa

檢視 Wayback Machine 備份