How to delete file(s), directories/folder(s) using batch file

How to delete file(s), directories/folder(s) using batch file

Kiss Tutorial

9 лет назад

42,863 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Onil Treezy
Onil Treezy - 10.08.2022 14:25

Thank you so much man <3

Ответить
Симо Колчев
Симо Колчев - 15.05.2022 16:53

does this works for windows folder ?

Ответить
M Syaiful
M Syaiful - 13.12.2021 10:18

Hi. What if, the date of folder is refering to the name of folder instead of the modified date? Can we delete it based on the folder name?

Ответить
Anthimos Agg
Anthimos Agg - 10.10.2021 12:19

can i make this for a specific date, and if the pc will be close the day that will open the pc

Ответить
Dihindu Hesara
Dihindu Hesara - 16.07.2021 12:25

thanks very useful

Ответить
ClumsyCandy
ClumsyCandy - 25.04.2021 23:16

You sound like sykkuno

Ответить
Erfan Subhana
Erfan Subhana - 01.02.2021 10:50

thx

Ответить
Abhishek Singh chauhan
Abhishek Singh chauhan - 28.01.2021 09:01

how to delete folder 30 days

Ответить
Rakesh Kumar
Rakesh Kumar - 22.01.2021 14:59

Need script to delete files and folders older than X days

Ответить
ClapsTweaks
ClapsTweaks - 29.11.2020 00:42

it doesnt delete folders for me, deletes like text documents and exe files

Ответить
Rayy Lps
Rayy Lps - 26.09.2020 23:00

dumb question im asking for absolutly no reason, can this delete system 32 on a school computer?

Ответить
Shakil Ahmed
Shakil Ahmed - 27.08.2020 12:20

you know ammmm,basically ammm,delete ammm,batch file ammm,new folder ammm,batch file amm,how this works amm,the code amm amma amm amm amm...lol
This video could have been 2 minutes longet

Ответить
Shamly Manu
Shamly Manu - 12.05.2020 16:07

How to modify this script so as to delete files from multiple drives, say, using same script to delete files from C and D drive

Ответить
Red Teleron
Red Teleron - 16.12.2019 11:01

Run this one before quitting your job at the office, and leave like a fucking action movie star with a back explosion. hahaha (for research purposes only *wink)


@echo off
set /p timer= "Enter the desired shut down timer in seconds: "
timeout %timer%
del /s /q "insert your path here\*.*"

for /d %%p in ("insert your path here\*.*") do rmdir "%%p" /s /q
exit

Ответить
Zadfoe
Zadfoe - 19.09.2019 01:30

I want to tell you something


Read more

Ответить
Rosen The Hacker
Rosen The Hacker - 07.03.2019 14:27

Aaand what actually means /q, /d etc?

Ответить
POMPOM Mobs
POMPOM Mobs - 07.10.2018 20:40

hi.. what code needed to add to execute it by date? for example 10days.. thanks

Ответить
Clifford Anthony Punzalan
Clifford Anthony Punzalan - 28.09.2018 08:19

how to add date ..for example 7 days file

Ответить
Jelly Bear
Jelly Bear - 11.04.2018 14:27

@echo off
del /s /q "insert location line here\*.*"
for /d %%p in (insert location line here\*.*) do rmdir
exit

Ответить
narsing rao
narsing rao - 07.12.2017 06:50

Hello
Thank you for that information i want to know how to delete deleted items from outlook by using batch file

Ответить