Jump to content

Batch extension rename in PHP?


Jragon

Recommended Posts

Hi!

 

I really really need some help... Do you know how I could do a batch file rename. I need to rename all .JPG files to .jpg... I've tried:

<?php
$cmd =<<<STUFF
rename 'y/A-Z/a-z/' *
STUFF;

system($cmd);

echo "Hopefully that would have worked.";
?>

 

I have no idea what so ever! What shall I do :S

Link to comment
https://forums.phpfreaks.com/topic/241331-batch-extension-rename-in-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.