Batch script to delete files

前端 未结 5 881
迷失自我
迷失自我 2020-12-24 04:16

I have a batch script as follows.

D:
del \"D:\\TEST\\TEST1\\Archive\\*.TSV\" 
del \"D:\\TEST\\TEST1\\Archive\\*.TXT\"
del \"D:\\TEST\\TEST2\\Archive\\*.TSV\"         


        
5条回答
  •  不知归路
    2020-12-24 04:46

    Consider that the files you need to delete have an extension txt and is located in the location D:\My Folder, then you could use the below code inside the bat file.

    cd "D:\My Folder"
    DEL *.txt 
    

提交回复
热议问题