Jump to content

Featured Replies

Posted
  • CTW Members

edit entire folders of filenames in one go (eg changing -'s to spaces) and creating a file list in a txt file?

 

fanx

 

i do actually know a way to do this writing my own script.....might do that....but it'd take 5 minutes.

  • CTW Members

Bulk Renaming of files and folders? not that i've seen... scripting all the way mate!

phil - it would take 10 seconds to write a scrip to do that.

 

less time if you did it in VB (altho it would probably crash mid way through or only pretend to rename the files)

  • Author
  • CTW Members

QUOTE (squeakage @ May 29 2004, 12:44)
you do seem like you have plenty of spare time though Phil.... sure u cud manage it

haha

*raspberry*

 

mmm, i did write a file list generator like 7 years ago user posted image a good one as well.

 

i can replace the -'s, but only with printable spaces. aye.

Edited by Phil rr

  • Author
  • CTW Members

well, i wrote a file renamer, it is 25MB, requires 512MB of memory, and a pentium 4 2.8 GHz.

 

sorry i meant 0.25 of a k, not 25MB

Edited by Phil rr

  • CTW Members

how come it needs such a high cpu?

he was joking

  • CTW DJs

You might be able to do what you're saying at the standard command/DOS prompt.

 

Batch renaming is limited though. E.g. you can do stuff like this:

 

ren porn????.jpg tits????.jpg

ren *.mpg *.mpeg

 

...but I don't know how to actually remove letters from filenames, or effectively search for substrings within the filenames. Using wildcards depends on the characters being in the same place in each file, I think.

 

As for generating a file list: you could use the pipe/routing functions of DOS prior to the actual renaming. e.g.

 

dir porn????.jpg /B > pornlist.txt

 

...so instead of printing the listing to the screen, it's "piped" to file.

large.av-91.gif.449166b45e170fe384bdf684

QUOTE (LiquidEyes @ May 29 2004, 14:35)
You might be able to do what you're saying at the standard command/DOS prompt.

Batch renaming is limited though. E.g. you can do stuff like this:

ren porn????.jpg tits????.jpg
ren *.mpg *.mpeg

...but I don't know how to actually remove letters from filenames, or effectively search for substrings within the filenames. Using wildcards depends on the characters being in the same place in each file, I think.

As for generating a file list: you could use the pipe/routing functions of DOS prior to the actual renaming. e.g.

dir porn????.jpg /B > pornlist.txt

...so instead of printing the listing to the screen, it's "piped" to file.

that was my 1st thought too, but i think he wants all the underscore characters replaced with spaces. so i'm assuming the underscores are used in downloaded files (as unix doesnt technically support spaces in file names). if thats the case then it wont be a standard rule of how many characters in the underscore will be

  • Author
  • CTW Members

cheers Liquid.

 

i did what i needed to, it replaced all the -'s with a space.

 

now i can get back to CTW. wink.gif

QUOTE (squeakage @ May 29 2004, 14:50)
happy you should be de-smelling yourself!!!

i'm getting a wiff of ur pong 3 counties away!!!

pmsl.gif

 

i'm off the wash now tongue.gif

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...
image.png
Clubbing the world together ...