Filter/synchronize/copy files decides by part of filename

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
AxelSVK
Junior Member
Junior Member
Posts: 4
Joined: 2012-06-08, 18:57 UTC

Filter/synchronize/copy files decides by part of filename

Post by *AxelSVK »

Hi, i try to describe my ToDo:

For example I have file structure in one folder like this

Code: Select all

file01.txt
file01_new.txt
file02.txt
file03.txt
file04.txt
file04_new.txt
file05.txt
I need to synchronise/move/copy (method doesnt matter) files from this folder, and I need to have structure like this:

Code: Select all

Folder1:
file01.txt
file02.txt
file03.txt
file04.txt
file05.txt

Folder2:
file01_new.txt
file02.txt
file03.txt
file04_new.txt
file05.txt
For description:
in folder1 I need to have all files in old version
in folder2 I need to have all new versions + old version, if the new doesnt exists.

The only way, how to decide between new and old version is a suffix after a filename string.
Can somebody help me, how to make this process automaticaly? Some type of sync, copy with parameters,...
I have no idea, how to do it and I need to filter approx 15000 files, so it's not a good idea to do it manualy... :cry:
AxelSVK
Junior Member
Junior Member
Posts: 4
Joined: 2012-06-08, 18:57 UTC

Post by *AxelSVK »

OR other view of the problem:

making Folder1 is easy.
And having all files in Folder2: how to delete only the old file versions, if the new one exists and preserve them, if the new one doesnt exists...
Post Reply