Gaming Anyone know how to find comma in filenames?

twiztidsinz

Taiju Yamada Fan
OP
Member
Joined
Dec 23, 2008
Messages
4,979
Trophies
0
Website
Visit site
XP
220
Country
United States
Seems I've run into a small dilemma. On a 'project' I've been working on I've been adding a number prefix to the filename (##. ), and to speed up the process and ensure uniformity, I've been using Magic File Renamer to do it automatically.
However, I think I mistyped "," instead of "." in the filenames on some files.

It wouldn't be an issue to go back and check them, but I'm dealing with 4,864 files and 771 folders -- and growing.
Neither explorer's search nor command prompt return anything useful, they just list all files/folders.
 

twiztidsinz

Taiju Yamada Fan
OP
Member
Joined
Dec 23, 2008
Messages
4,979
Trophies
0
Website
Visit site
XP
220
Country
United States
Originality said:
IIRC, windows doesn't support having a comma in the filename at all. What that implies to your batch operation, I have no idea...
While I'm not positive, as far as I know any version of Windows that supports long file names (more than 8+3) also supports commas.
However I do know for a fact that Windows XP/Vista/7 all support commas in file names:
filewithcommas.png
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
Can't Magic File Renamer do it too ?
Like "replace the 3rd character by a dot" ?


I'm using an old program to mass rename my files, there's certainly better but I'm fine with this one :
http://www.numerama.com/telecharger/6360-renamer-plus.html

No installation required.

Though, it's all in French
unsure.gif


it can rename a specific string, rename a character at a specific place, add a counter, delete part.


To replace a string :
You drag/drop the files or folders in the rightmost part
Then on the "mass" tab, you tick the checkbox for the action you want to do : "changer tous les , par des ." (change all the , with .)
Then you click "OK" button, and it will verify if there's no conflict with the new name scheme, if you agree with the result you can confirm the change.

If you don't click the "ext" icon, it won't affect the file extension ".ext", so you can even rename all the dots in a filename into something else, the extension will be kept.

It doesn't rename folder though, only the files in the folders.
 

twiztidsinz

Taiju Yamada Fan
OP
Member
Joined
Dec 23, 2008
Messages
4,979
Trophies
0
Website
Visit site
XP
220
Country
United States
Cyan said:
Can't Magic File Renamer do it too ?
Like "replace the 3rd character by a dot" ?


I'm using an old program to mass rename my files, there's certainly better but I'm fine with this one :
http://www.numerama.com/telecharger/6360-renamer-plus.html

Though, it's all in French
unsure.gif



You drag/drop the files or folders in the rightmost part
Then on the "mass" tab, you tick the checkbox for the action you want to do : "changer tous les , par des ." (change all the , with .)
Then you click "OK" button, and it will verify if there's no conflict with the new name scheme, if you agree with the result you can confirm the change.


It doesn't rename folder though, only the files in the folders.
Yeah MFR can do it... but it takes a long time to load the 771 folders, I'd rather not try to add nearly 5k files.
However, not all the file names are uniform and some aren't even numbered so replacing based on position might do more harm than good.

I'll check out the app you listed above tomorrow, going to bed for now.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,403
Country
United Kingdom
Assuming you have not otherwise sorted it my usual standby appears to work

dir /b *,* >>a.txt (if you have subdirectories stick a /s in there)
A nice simple text list of all files call a.txt will appear

Throw it around in a spreadsheet and add a rename command, find and replace commas somewhere along the line, you are probably going to want to wrap the names in quotes unless you have spaces in names or directories, tidy it up in a text editor (remove tabs and maybe change quotes if they end up as inverted quotes) and you have yourself a nice batch file. Crude certainly but it can be done without resorting to installing odd programs.
 

spinal_cord

Knows his stuff
Member
Joined
Jul 21, 2007
Messages
3,227
Trophies
1
Age
43
Location
somewhere
Website
spinalcode.co.uk
XP
3,420
Country
Give this a try -

renamer.rar

It's specifically for changing "," to "." in filenames. the source is includes, but its in blitz basic, so might not be of any use.

Just put it in the lowest folder and run, it should then search through all sub folders renaming files containing commas, hopefully it wont do any damage as its using a cmd window to do the renaming (a dos window should rapidly open and shut as it renames files).

Disclaimer
Although I tested this on my own computer and it seemed to work correctly, if by any weird occurrence it kills any or part of your computer, I take no responsibility for that.
 

ZAFDeltaForce

Specialist
Member
Joined
Sep 9, 2006
Messages
2,794
Trophies
1
XP
597
Country
Singapore
^ I too highly recommend ReNamer

You can add rules to batch-rename files.

There's a rule where you can choose to replace characters with other characters, such as substituting that comma with a full stop
 

twiztidsinz

Taiju Yamada Fan
OP
Member
Joined
Dec 23, 2008
Messages
4,979
Trophies
0
Website
Visit site
XP
220
Country
United States
Thanks guys... got it sorted out.


Ended up going with an idea based on FAST's post.
Unfortunately, searching "*,*" returns ALL files, so I just exported them all to text file and did a regex search for "\d\d, " and deleted all the lines that didn't have a match. Then threw them into Magic File Renamer with a similar RegEx replace ("(\d\d), " -> "$1. ").

60 some-odd files were easier to manage than nearly 100x that.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    I thought PS4/5 and Xbox One emulation would be kind of easy since they basically just a PC
  • ColdBlitz @ ColdBlitz:
    they sorta are a pc
  • K3Nv2 @ K3Nv2:
    They haslve dedicated on board chips that aren't tweaked like x64/x32 afaik
  • ColdBlitz @ ColdBlitz:
    but its a custom os for both of them
  • ColdBlitz @ ColdBlitz:
    designed for only specific hardware
  • ColdBlitz @ ColdBlitz:
    so you have to learn to emulate that specific hardware which isn't as easy as you'd think
  • K3Nv2 @ K3Nv2:
    It's a locked down Linux distro basically
  • Psionic Roshambo @ Psionic Roshambo:
    I think the only custom hardware is to do with the SSD and a security chip
  • Psionic Roshambo @ Psionic Roshambo:
    Probably combined in one chip
  • K3Nv2 @ K3Nv2:
    They place married security chips onto boards iirc
  • Psionic Roshambo @ Psionic Roshambo:
    Damn Frontier is offering 5Gbps now lol
  • K3Nv2 @ K3Nv2:
    I honestly can't recommend any of the big 3 this years I'd say buy a rog ally z1 if we're being honest
  • Psionic Roshambo @ Psionic Roshambo:
    Honestly after the PS3 and 360 I just went full PC
  • K3Nv2 @ K3Nv2:
    Every games basically cross platform they only have about 6 titles making it worth the $600 price tag
  • Psionic Roshambo @ Psionic Roshambo:
    Didn't see much need for a console, all the advantages have kind of disappeared
  • ColdBlitz @ ColdBlitz:
    the ps3 used to support installing linux because the cpu was so powerful
  • K3Nv2 @ K3Nv2:
    Then the games are $70 and they want to reboot and refresh the same game every year
  • K3Nv2 @ K3Nv2:
    The ps3 was always Linux they just found a way to make it open source
  • ColdBlitz @ ColdBlitz:
    I'm avoiding buying from the big 3 at all atm
  • Psionic Roshambo @ Psionic Roshambo:
    At one point PC game pads where poorly supported, loading a game had setup, it was complicated. Now it's almost as easy as a console.
  • ColdBlitz @ ColdBlitz:
    nintendo needs to up their game soon
  • K3Nv2 @ K3Nv2:
    Yeah even bt support for Xbox one controllers are just as easy as pairing
  • ColdBlitz @ ColdBlitz:
    considering the steamdeck can emulate the switch (yikes) theres almost 0 reason to buy the switch apart from playing online and using cartridges
  • K3Nv2 @ K3Nv2:
    Xinput and 360 dongles were a driver nightmare
  • K3Nv2 @ K3Nv2:
    I remember having to manually put in drivers and what not
    K3Nv2 @ K3Nv2: I remember having to manually put in drivers and what not