Batch files 3: How to sort and move files by extension type

Batch files 3: How to sort and move files by extension type


Batch files 3: How to sort and move files by extension type

Is your desktop overcrowded with random files? Or maybe your downloads folder? Want to clean it up, fast? Using a batch file you can automatically move files to the appropriate folder.

Batch file commands:

"@echo off

REM Documents
move *.docx C:\Users\username\Documents
move *.pdf C:\Users\username\Documents
move *.xls C:\Users\username\Documents
move *.txt C:\Users\username\Documents

REM Music
move *.mp3 C:\Users\username\Music
move *.wav C:\Users\username\Music

REM Pictures
Move *.jpg C:\Users\username\Pictures
Move *.jpeg C:\Users\username\Pictures
Move *.png C:\Users\username\Pictures
Move *.bmp C:\Users\username\Pictures
Move *.gif C:\Users\username\Pictures

REM Video
move *.mp4 C:\Users\username\Videos
move *.wmv C:\Users\username\Videos
move *.avi C:\Users\username\Videos
move *.mkv C:\Users\username\Videos"

Remember to change 'username' to your actual computer username.
´REM´ means 'REMARK', so everything on the same line after that command gets ignored. In this case I used it as a header for the list of extension types.


Follow me on other media:
►Website: http://www.guidoshowtos.com
►Facebook: https://www.facebook.com/guidoshowtos
►Twitter: https://twitter.com/guidoshowtos
►Google+: https://plus.google.com/+Guidoshowtos


Music used:
Pulse Rock, Kevin MacLeod (incompetech.com)


Annotations;

Batch files 3: Sort and move files by extension type

Does your desktop look something like this? Or maybe your download folder? Want to clean it up fast and sort the files automatically from now on?

You can do so with a simple batch file.
Right click the desktop → New → Text Document.
I name my text file 'Sort Files'.

You can copy and paste the batch file commands from the description below this video.

These batch file commands tell your computer to move all files ending on their respective extension (e.g. *.docx) to a specific filepath (in this case your libraries (documents, music, pictures, video's).

Usually you'll want your .docx, pdf, and xls files in your documents folder, your .jpg, .png files in your pictures folder, etc.
You can, of course, add more extensions to this file.

Save the text document and close it. Rightclick → Rename, and change the extension to a .bat to make the text file into a batch file.
(if you can't change the extension this way, go to Folder Options → View, and untick 'Hide extension for known file types')

Click 'Yes'

Now, by doubleclicking the batch file, we can move all files on the desktop to their respective libraries.

Wham!

All documents in the documents folder...

... all music in the music folder ...

... all silly animal pictures in the pictures folder...

... and the video in the video folder!

Video Length: 01:35
Uploaded By: Guido's How-to's
View Count: 11,009

Related Software Products
Extension Copy
Extension Copy

Published By:
zysoftsupport

Description:
Extension Copy is a powerful tool designed to help you copy, delete, cut or crush the files with specific name, size and modification time. This tool supports filename masks, so it allows you to manage the file names and types in which you're interested. With extension copy, you can copy or cut interested files, or delete them in one action. There are 3 deleting-modes, move to trash, delete and crush. If you have confidential documents and want these documents to be erased forever, you can ...


Related Videos
How To Add Internet Download Manager Extension For Google Chrome
How To Add Internet Download Manager Extension For Google Chrome

If you have any problem in your software just contact me and i'll help you with it hr / bClosed Caption:/b and hey guys and today I'm going to show you how to add the extension of the internet download manager for your google group and maybe you know a you accidentally remove it or you updated the new version of the internet download manager so today I'm going to show you how to add the extension go to computer then ...
Video Length: 03:15
Uploaded By: WWE Lover
View Count: 169,120

Download MEGA files directly through IDM(internet download manager) UPDATED #RGS
Download MEGA files directly through IDM(internet download manager) UPDATED #RGS

Download: http://sh.st/nV7cP This method will not work if Mega Chrome extension is installed. disable the extension and then follow this method to install :) P.S: Or copy the download link by importing file to your mega account. Due to chrome extension the link is changed there is another one...:p Don't turn off or disable Mega downloader...the file you might be downloading will stop....to run download again...just copy the link again of the ...
Video Length: 02:11
Uploaded By: Gnana Sreekar
View Count: 63,492

How to install an extension in Magento - Magento Video Tutorials from Opace
How to install an extension in Magento - Magento Video Tutorials from Opace

In this Magento video tutorial we'll show you how to search and install extensions using Magento Connect. We also cover how to copy the extension key and apply it using Magento Connect Manager. For more information see our website at - http://www.opace.co.uk/magento-design and our blog at - http://www.opace.co.uk/blog/how-to-install-extensions-in-magento-video-tutorial hr / bClosed Caption:/b hi this is paul from a pace and today I'm going to ...
Video Length: 02:29
Uploaded By: Opace Web Design in Birmingham
View Count: 51,198

Tutorial Kembalikan IDM Extension Ke Dalam Chrome 2013
Tutorial Kembalikan IDM Extension Ke Dalam Chrome 2013

Ada cara nak memintas sekatan ini. Caranya mudah sahaja. 1. Pergi ke folder 'Internet Download Manager' dalam 'Program Files'. 2. Cari fail 'IDMGCExt.crx' (Ini adalah IDM integration extension untuk Chrome) dan tukarkan .CRX extension kepada .ZIP extension. 3. Extract kandungan fail tersebut ke dalam satu folder pada desktop (atau di mana saja anda boleh menulis data kerana dalam 'Program Files' anda perlukan keizinan untuk menulisnya) dengan ...
Video Length: 05:29
Uploaded By: Adli Shinichi
View Count: 19,089

How To Get Macro, no extension, (read description)
How To Get Macro, no extension, (read description)

https://autohotkey.com/ Copy & Paste =========== *w:: Loop { GetKeyState, state, w, P if State = U break ; Otherwise: Send, {w} Sleep, 250 } return *e:: Loop { GetKeyState, state, e, P if State = U break ; Otherwise: Send, {w} Sleep, 10 } return F12:: Exitapp return hr / bClosed ...
Video Length: 03:33
Uploaded By: FoxyDC
View Count: 13,849

Creating a new user and extension in Avaya IP Office by copying and pasting an existing user
Creating a new user and extension in Avaya IP Office by copying and pasting an existing user

Creating a new user and extension by copying and pasting an existing user in Avaya IP Office. Considers which settings need to be modified when copying one user to create another. For more information, please visit: http://www.digitcom.ca hr / bClosed Caption:/b yeah another method of creating a new user to copy and paste an existing user the advantage of that is that the existing user has the settings that you're interested inbr ...
Video Length: 02:58
Uploaded By: Digitcom
View Count: 13,176

Maya 2016 Extension 1: Improved Vector Graphics Workflow
Maya 2016 Extension 1: Improved Vector Graphics Workflow

Enhanced SVG support in Maya 2016 extension 1 provides the ability to import or copy/paste SVG files into Maya, enabling interoperability with vector-based 2D design applications. Artists working in 2D design applications such as Adobe Illustrator can bring their vector graphics into Maya through new SVG file support and utilize a new workflow, similar to 3D Type, which includes the ability to extrude, bevel, animate, and extend vector graphics. autode.sk/Maya2016 hr / bClosed ...
Video Length: 07:16
Uploaded By: Autodesk
View Count: 11,884

How to install Magento extension by Amasty
How to install Magento extension by Amasty

Main steps how to install Magento extensions made by Amasty: 1. Log in to Magento admin panel 2. Check Cache Management (if there are some Cache Types disabled change them to enable status) 3. Check Compilation status (Disable compilation if it's enabled) 4. Copy files from the package to the folder of your Magento - First copy files from the folder Step1 - Then copy files from the folder Step2 5.If you use a custom design theme, please ...
Video Length: 02:16
Uploaded By: AmastyTeam
View Count: 11,072

A Sims 4 Mod Review: UI Cheats Extension!
A Sims 4 Mod Review: UI Cheats Extension!

Tired of having to look for cheats, then copy and paste or even TYPE them in? Check out this mod and the awesome extension it gives us! The Sims 4 Mod Reviews Playlist: http://full.sc/11EJhrx I hope you all enjoy :) --------------------------------------------- » Important Links « Mod Creator: Weerbesu Mod Links: http://goo.gl/ywGo4w --------------------------------------------- » Contact Me ...
Video Length: 10:29
Uploaded By: MSFT
View Count: 10,247

Copyright © 2025, Ivertech. All rights reserved.