(für die Linuxer unter Euch)
Für alle Anderen anbei ein bisschen REBOL code für die Gleiche Aufgabe (Anhang)
Den REBOL core findet ihr unter http://www.rebol.com/download-core.html
gibt's für Windows, MAC und Linux und weitere Platformen.
Verschiebt sowohl JPG als auch GIF Dateien.
Einfach die Datei move.r ins Spoiler Verzeichnis Speichern und von dort ausführen
Code:
REBOL[]
dir: system/script/path
filter1: "*.jpg"
filter2: "*.gif"
files: load dirize dir
foreach file files [
if all [
#"/" <> last file
any [ find/any file filter1 find/any file filter2]
][
targetdir: to-file rejoin [ copy/part file 4 "/"]
probe targetfile: rejoin [targetdir file]
if not dir? targetdir [ probe make-dir targetdir ]
if/else not exists? targetfile
[rename file rejoin [targetfile]]
[delete file]
] ; end if all
] ; end Foreach