how to move files into folder based on segment of file name

August 28, 2017 at 13:59:46
Specs: Windows 10
I am currently trying to make a script which is able to selectively move a series of files into a single folder based on a segment of the file name. The segment of concern is something like as follows: "sitename_T001_L004.jpg" where "sitename_T001" represents the location at which the image series was taken, and L004 represents the depth at which that image was taken. I need to write a script that will move every 4th depth image, starting from the first, into a single folder, while respecting the location data. So, for example, L004, L008, and L012 and so on must be together in a single folder, which ideally will be automatically created with folder name "sitename_T001".

As a bonus, if this could "drill" one folder down from the parent to operate on multiple T folders at once, this would be even better, as the folder heirarchy goes "sitename">"T0xx">"L0xx" so it would be beneficial to have the script run from the "sitename" folder but affect the images one folder down, in the "T0xx" folder.


See More: how to move files into folder based on segment of file name

Reply ↓  Report •

#1
August 29, 2017 at 08:49:51
I'll commit to working through this if you commit to sticking with it.

I've had my fill of aborted threads in the last few months.

2017-08-29 22:49:29.65 GMT +7

=====================

M2 Get custom script or take private lessons


Reply ↓  Report •

#2
September 4, 2017 at 00:43:46
I'm glad we got clear on that right out front.

2017-09-04 14:43:16.81 GMT +7

=====================

M2 Get custom script or take private lessons


Reply ↓  Report •
Related Solutions


Ask Question