CodeKicks.com
Focus on Microsoft Technologies - Tutorials, Articles, Code Samples.

Thursday, June 11, 2009

Command to delete files

 

Type the following to delete a file named “a.txt”

DELETE a.txt

To delete all files with extension “.txt”

DELETE *.txt /q

/q make sures that the files are silently deleted

To check if the file exists and delete

if exists *.txt delete *.txt /q

Post a Comment