It is currently April 19th, 2024, 9:47 am

File to folder Batch Script

Topics unrelated to Rainmeter.
User avatar
sa3er
Posts: 152
Joined: March 2nd, 2013, 7:18 am
Location: Tehran

File to folder Batch Script

Post by sa3er »

If you ever created a skin with 10 or more ini and then in order to make them run simultaneously you decided to put them on their own folders beneath skin path, then instead of creating folders one by one, this script might come handy.

It won't touch @Resources folder or any other folder but creates a folder for every file in your skinpath with the same name as filenames and then moves files to the newly created folders.

Maybe somebody else needed something like this in future.
Save below code as a .bat and then put it in the skin folder you intend to do something as explained and run it.

Code: Select all

@echo off
for %%a in (*.*) do (
md "%%~na" 2>nul
move "%%a" "%%~na"
)
FlyingHyrax
Posts: 232
Joined: July 1st, 2011, 1:32 am
Location: US

Re: File to folder Batch Script

Post by FlyingHyrax »

Useful; thanks!
Flying Hyrax on DeviantArt