Skip to main content

Start cmd in windows and delete all the .mp4 files in a folder

Start cmd in windows and delete all the .mp4 files in a folder.
1.Search for cmd and you will see it like this.



2.Once you click on it,it will appear on its own window.

3.Lets say i have a mix of files in 'Documents' folder and i want to delete all the mp4 files. enter the command  del .\documents\*.mp4  ,use the full path if you are not sure from where you are executing your cmd.see bellow.


Comments

Popular posts from this blog

Zavigne

Simple loop in cmd

Ever wondered how to make a loop in cmd  1.start cmd.exe 2.Simple type for /l  %i in (1,1,10) do echo %i

How to shutdown a computer using command

Lets say you want to sleep while watching a movie in your laptop and you want it to shut itself down in 30 minutes,an hour or any time you want,this is how you would do it.      1.Start cmd and type shutdown /f /s /t 300        -shutdown calls windows shutdown        -/f is to force the shutdown and terminate all the running applications        -/s is to specify a shutdown, you may also sleep,hibernate or restart your pc        - /t is for time in milliseconds,300 milliseconds is 5 minutes.   2.Lets say you want to abort your scheduled shutdown, just type shutdown /a   and the system will cancel automatically and notify you like this.