Auto-create multiple folders and save files inside it, in one click!!

preview_player
Показать описание
Code:

@echo off

for %%i in (*) do (

if not "%%~ni" == "organize" (

md "%%~ni" && move "%%~i" "%%~ni"

)

)
Рекомендации по теме
Комментарии
Автор

oh my goodness, this was EXACTLY what i was looking for. Thank you SO

ziggytipper
Автор

Bless you, lady!
This script does literally 100% exactly what I needed!! I have a bunch of files in one folder, and I wanted to create separate folders for each file, based on the file name. this does EXACTLY that, instantly!
It creates a folder named exactly the same as the file, then moves the file into the folder! Brilliant!
Thanks so much!!

drjones
Автор

Great! Thank you very much, you saved my time and a lot of manual work

lsamurai
Автор

Wow!!!.. you are a genius. Thank you I been looking for some thing like this for years.

rygar
Автор

Very smart batch program!
I am interested in a batch routine that would go through a long list of directories and copy out the files within and place all files in the root or parent directory, even better a new dir with all the files in it.... I have to do this manually all the time!

carlnelson
Автор

This video was so useful, thank you very much. hope you have a nice day

Youbetterwatchthesetoo
Автор

You are brilliant. Wish I can donate some money to you for this video. You saved my April month.

satyajitmahapatra
Автор

it worked very well. thank you for sharing

joaomelo
Автор

great, very useful, thank you ! <3

christophepetchanatz
Автор

Thank you very much. You helped a lot !! PEACE !!

abdoenc
Автор

is exactly what I was looking for. Thanks alot.

Budgies_Lovers_UAE
Автор

Thank you for your guide, it's so easy to follow. Just wonder, if I would like to create file with part of the name, what should I do? Just like your files, I only want to create folders with year number "2015"... only.

nguyenthuthuy
Автор

Thanks this is big game changer for me

chrisdsouza
Автор

Very good i m searching for 3 day! But u solved my problem l thanks

heeradangi
Автор

Hi - Can you help me with my query?

I have a folder which has hundreds of files such as Invoices from different suppliers pertaining to different months, statements from different suppliers pertaining to different months, and lastly bank payment receipts pertaining to different suppliers and different months.

Now, I wish to automate moving all these files to respective supplier folders which have already existing subfolders with different months. So, all the files get filed to thr right locations.

How can I do this please?

sultandhaliwal
Автор

Many Thanks, But what about if I want to move them to existing files based on part of the pdf name.

mktr
Автор

Brilliant! What does it do if there are other folders in the folder?

blurryguy
Автор

This is awesome, I am only for the searching for this method.
But I need another code if possible then it would be great full for me.
My folder has 1000+ files but I want to creat folder of move 40 files in each folder.

KhairMuhammadKumbher
Автор

I used it before and it was very helpful. now i'm using it but it creates folders without moving files inside it. Please advise.

amrsoliman
Автор

Du you know a way to rename the file to the same name one's you put them in folders? thank you for you help.

rygar