View Full Version : regular expression...
Hi! People doing an awesome work...
I would like to lowercase a lot of files using the file rename option with regular expressions... Is this possible with BC? It looks like BC doesn't support the /g switch, so is there anything I can do? Any suggestion will be appreciated...
Thanks in advance
MyXelf
Chris
04-Oct-2005, 09:18 AM
As far as I know there isn't a way to use BC's regular expression rename to force file names to lowercase.
If you're uploading to an FTP site, you can force the case by changing the Filename Conversion setting in the FTP section of Tools|Options.
Ernie
04-Oct-2005, 10:43 AM
Depending on how many files and if you want to go through the effort, InfoZip's Zip/Unzip utilities allow you to zip the files using regex's and convert to lower case when unzipping.
If interested: http://www.info-zip.org/pub/infozip/
This is the process. All files are local...
1- Remove R/O attribute from the files
2- Rename files to lowercase
3- Touch the files to some specific date
4- Set the R/O attribute to the files again
As you can see all the steps (except #2) are easily done using BC. I'll do it using Batch script... Anyway, thanks to Chris and Ernie for the effort...
MyXelf
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.