Code: Select all
"Redim au choix"
foreach($file, "<get SelectedItemsPathNames |>") {
$ext = gpc($file, "ext");
$oldName = gpc($file, "base");
$newName = replace(recase($oldName, "lower"), " ", "-");
rename "s", "$oldName/$newName";
}
$largeur = input("La plus grande taille max", "Entrer valeur");
wait 300;
foreach($file, "<get SelectedItemsPathNames |>") {
runret("""C:\Program Files\nconvert\nconvert.exe"" -ratio -rtype lanczos -rflag orient -quiet -resize longest"." $largeur"." -out jpeg -o ""E:\images\Output\%.jpg"" ""<curpath>\$newName.$ext""");
}
end confirm ("Allez à Output ?") == 0;
goto "E:\images\Output";