Tilted Forum Project Discussion Community

Tilted Forum Project Discussion Community (https://thetfp.com/tfp/)
-   Tilted Technology (https://thetfp.com/tfp/tilted-technology/)
-   -   [tool]renaming files? (https://thetfp.com/tfp/tilted-technology/70034-tool-renaming-files.html)

bubbles 09-22-2004 03:53 AM

[tool]renaming files?
 
I got some folders, all of them contain pictures with 001.jpg, 002.jpg etc. at the end. Now I want to put all those pics into one folder, so they have to be continously numbered.

Do you know a tool which features this?

Tandem 09-22-2004 04:02 AM

Why don't you script it (dos or NT-Scripting) and learn a new skill in the process?

SiN 09-22-2004 04:55 AM

^ not a bad suggestion...

...or, for a prog, I recommend Renamer.
I've been using this freeware util for a few years, and I love it.

:)

tropple 09-22-2004 10:06 AM

I'm very partial to CK Rename:

http://www.musicsucks.com/CKSoft/index.htm

Free and very feature rich.

shadowalker 09-22-2004 02:37 PM

Tropple thanks for the program link, I too have been looking for a program that is as easy to use as this one. I'd give ya a rep point only if this forum supported things like that.

mikec 09-24-2004 08:26 AM

Quote:

Originally Posted by SiN
^ not a bad suggestion...

...or, for a prog, I recommend Renamer.
I've been using this freeware util for a few years, and I love it.

:)

I had this question about a month ago (hint, next time search the forum) and SiN recommended renamer there too. It got the job done, and was easy to figure out. Good stuff!! :thumbsup:

sashime76 09-27-2004 12:42 PM

To batch rename pictures I use Irfanview, it's a image viewer but does more than that. It's totally free to download and use. Give it a shot.

Tandem 09-27-2004 11:04 PM

sashime76, can you provide us with a link?

spindles 09-27-2004 11:58 PM

Quote:

Originally Posted by Tandem
sashime76, can you provide us with a link?

google is your friend:

http://www.google.com.au/search?hl=e...e+Search&meta=

tropple 09-28-2004 03:16 AM

I like infranview, but I have a problem with the design in that it has no provision to _not_ save MRUs.

vanblah 09-28-2004 07:54 AM

It would be very simple to script this.

Sometimes a command at the command prompt like "ren *.jpg *_foldername.jpg" will work ... but if it doesn't you can do the following.

At a command prompt you can type dir /b > foldername.txt ... this will create a text file with all of the filenames in the folder (the /b switch tells the dir utility to use bare format so you don't get all of the extraneous information for each file). You would do this for each folder. Hopefully you know how to navigate directories (folders) at a command prompt -- if not then you will probably want to use the utilities above.

After running dir /b > foldername.txt you will have a text file with something like:

001.jpg
002.jpg
003.jpg

in it.

You need to use Textpad (http://www.textpad.com/) to build the script to rename each file whatever you want it to be called.

Textpad has a nifty feature called "block mode" ... you can use it to copy the first list and paste it next to itself:

001.jpg 001.jpg
002.jpg 002.jpg
003.jpg 003.jpg

Then you can prepend text in front of those lists (in block mode):

Select the SECOND 00x.jpg column and find/replace .jpg with .jpg ren x:\foldername\ (where x=your drive name)

001.jpg 001.jpg
002.jpg 002.jpg
003.jpg 003.jpg

becomes

001.jpg 001.jpg ren x:\foldername\
002.jpg 002.jpg ren x:\foldername\
003.jpg 003.jpg ren x:\foldername\

While still in block mode select just the "ren x:\foldername\" column and cut it (not copy). Then place your cursor in front of "001.jpg 001.jpg" and select paste

You should now have:

ren x:\foldername\001.jpg 001.jpg
ren x:\foldername\002.jpg 002.jpg
ren x:\foldername\003.jpg 003.jpg

again using block mode select the second list or just the second .jpg and use the find/replace utility to replace .jpg with _foldername.jpg (or anything that seperates these files from the other files):

ren x:\foldername\001.jpg 001_foldername.jpg
ren x:\foldername\002.jpg 002_foldername.jpg
ren x:\foldername\003.jpg 003_foldername.jpg

Save the file with the .bat extension and then run it.

If you do that for each folder you will have unique names for every JPG and they can be copied to a single folder. You can even script the copy process using similar methods.

It's not really as complicated as it looks in writing. The whole process should take about 3 minutes for each folder (once you get the hang of it).

Of course, you can always use the utilities listed above.

D


All times are GMT -8. The time now is 08:39 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360