Mastering File Deletion in CMD
The recycle bin overflowing? Desktop drowning in unwanted files? Fear not, CMD warriors! This video unlocks the secrets of precise and efficient file deletion using the mighty command prompt.
Leave the messy drag-and-drop behind! Learn how to:
Target specific files with laser accuracy – no more accidental deletions!
Delete entire folders in a single, satisfying command.
Wipe out stubborn files that refuse to go the easy way.
▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
00:30 - Check Directory
00:56 - Make new directory
01:46 - Delete directory
02:22 - Move back from current directory
02:50 - remove all folders from current directory
03:28 - make files of notepad/word
04:06 - Delete notepad file
04:11 - Print text
Syntax
DEL [options] [/A:file_attributes] files_to_delete
Key
files_to_delete: A filename or a list of files, may include wildcards.
options:
/P Give a Yes/No Prompt before deleting.
/F Ignore read-only setting and delete anyway (FORCE)
/S Delete from all Subfolders (DELTREE)
/Q Quiet mode, do not give a Yes/No Prompt before deleting.
/A Select files to delete based on file_attributes
file_attributes:
R Read-only -R NOT Read-only
I Not content indexed -I content indexed files
Wildcards: These can be combined with part of a filename
Match any characters
? Match any ONE character
If a folder name is given instead of a file, all files in the folder will be deleted, but the folder itself will not be removed.
Error levels: DEL will return an Errorlevel of 0, irrespective if the delete succeeds or fails for any reason.
(If you delete files using PowerShell then a True/False return code ($?) will be set correctly.)
Error levels
If the files were successfully deleted %ERRORLEVEL% = 0
Bad or no parameters given = 1
Examples:
Delete "Hello World.txt"
DEL "Hello World.txt"
Delete 3 named files:
DEL file1.txt file2.txt "C:\demo\file3.txt"
Delete all files that start with the letter A
DEL A*
Delete all files that end with the letter A
DEL A.
Delete all files with a .doc extension:
DEL *.doc
Delete all read-only files:
DEL /a: R *
Delete all files including any that are read-only:
DEL /F *
how to make and remove directory:
https://www.youtube.com/edit?video_id...
how to change color and title in cmd:
https://www.youtube.com/edit?video_id...
how to change directory in command prompt:
• How to Change Directory in Command Prompt ...
► Follow on Google+: http://[email protected]
► Follow on Twitter: / @rananavi4766669 :
✅Here's the complete playlist of React JS Crash Course
• Mastering ReactJS: Building Dynamic Web Ap...
✅Here's the playlist of the Advance Github Course (2021).
https://www.youtube.com/watch?list=PL...
✅Here's the playlist of the Mobile Application Development Course (2021).
• Mobile Application Development Course
✅Here is my social links for any sort of help
Facebook: / naveed.trainer
Facebook Group: / learnwithnaveedsarwar
LinkedIn: / naveed-trainer
Twitter: / naveed_trainer
Website: https://techloset.com/
#cmd #NaveedTrainer #NaveedSarwar #command prompt