Batch script to delete files

前端 未结 5 839
迷失自我
迷失自我 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 05:02

    Lets say you saved your software onto your desktop.
    if you want to remove an entire folder like an uninstaller program you could use this.

    cd C:\Users\User\Detsktop\
    rd /s /q SOFTWARE
    

    this will delete the entire folder called software and all of its files and subfolders

    Make Sure You Delete The Correct Folder Cause This Does Not Have A Yes / No Option

提交回复
热议问题