C++ to delete all unnecessary files with just one click, along with the visuals!

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
If u wanna
Seçkin Üye
Katılım
20 Şub 2016
Mesajlar
448
Çözümler
11
Tepki puanı
190
Ödüller
10
Sosyal
10 HİZMET YILI
:yazı:
Below is an example code using C++ programming language to delete all unnecessary files. This code deletes specific file types (for example, .txt, .pdf, .jpg) in a directory specified by the user.
1678451934017-png.png

This program prompts the user to enter the path of the directory where unnecessary files will be removed. Then, it checks each file in that directory one by one, and if it is suitable for the unnecessary file types (.txt, .pdf, and .jpg), it deletes them. Of course, before using this program, you must be sure to carefully check whether the files need to be deleted. Otherwise, important files may be accidentally deleted. (%appdata%,prefetch) :peepoBusiness:
 
Donator
Katılım
7 Ara 2021
Mesajlar
955
Tepki puanı
352
Ödüller
7
Yaş
32
4 HİZMET YILI
good tool, to save time instead of doing it manually. :peepoNice:
 
𝕄𝕒𝕤𝕥𝕖𝕣 𝕠𝕗 𝕎𝕒𝕥𝕔𝕙
Ultra Üye
Katılım
20 May 2020
Mesajlar
1,954
Tepki puanı
261
Ödüller
9
6 HİZMET YILI
:yazı:
Below is an example code using C++ programming language to delete all unnecessary files. This code deletes specific file types (for example, .txt, .pdf, .jpg) in a directory specified by the user.
1678451934017-png.png

This program prompts the user to enter the path of the directory where unnecessary files will be removed. Then, it checks each file in that directory one by one, and if it is suitable for the unnecessary file types (.txt, .pdf, and .jpg), it deletes them. Of course, before using this program, you must be sure to carefully check whether the files need to be deleted. Otherwise, important files may be accidentally deleted. (%appdata%,prefetch) :peepoBusiness:
ohh thats a lot of help thanks mate i will try it
 
Onaylı Üye
Katılım
16 Mar 2021
Mesajlar
52
Tepki puanı
1
Ödüller
2
Yaş
25
5 HİZMET YILI
I am following the comments to know a solution as well ^^
 
Onaylı Üye
Katılım
4 Mar 2023
Mesajlar
93
Tepki puanı
14
Ödüller
1
3 HİZMET YILI
Not bad. Maybe you can compile it yourself and make a small tool
 
Onaylı Üye
Katılım
18 Nis 2019
Mesajlar
52
Tepki puanı
6
Ödüller
5
Yaş
41
7 HİZMET YILI
i tried it it works fine with me
 
Ultra Üye
Katılım
26 Eyl 2022
Mesajlar
1,512
Çözümler
3
Tepki puanı
292
Ödüller
3
Yaş
29
3 HİZMET YILI
This C++ code can be useful for those who want to automate the task of removing unnecessary files in a specific directory, but it is important to be careful not to accidentally delete important files.
 
Tired of cheating
Süper Üye
Katılım
16 Haz 2018
Mesajlar
1,338
Çözümler
4
Tepki puanı
147
Ödüller
10
Yaş
33
7 HİZMET YILI
:yazı:
Below is an example code using C++ programming language to delete all unnecessary files. This code deletes specific file types (for example, .txt, .pdf, .jpg) in a directory specified by the user.
1678451934017-png.png

This program prompts the user to enter the path of the directory where unnecessary files will be removed. Then, it checks each file in that directory one by one, and if it is suitable for the unnecessary file types (.txt, .pdf, and .jpg), it deletes them. Of course, before using this program, you must be sure to carefully check whether the files need to be deleted. Otherwise, important files may be accidentally deleted. (%appdata%,prefetch) :peepoBusiness:
Huge fan of your works! God Bless you brother for sharing it with us
 
Onaylı Üye
Katılım
5 Şub 2019
Mesajlar
65
Tepki puanı
3
Ödüller
6
Yaş
29
7 HİZMET YILI
good tool, to save time instead of doing it manually
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst