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
  • BigOnYa @ BigOnYa:
    Its actua!ly just a old joke, meaning its slow. Was just kidding around with you.
    +1
  • BigOnYa @ BigOnYa:
    I bet @AncientBoi has some hamsters hidden somewhere tho....
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I think Game streaming should work like this.... Local Hardware able the run the game fine, game engine and common assets stored locally, all FMV and music and textures could be streaming
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Some temporary storage
  • Xdqwerty @ Xdqwerty:
    also @BigOnYa im making some progress on my gdevelop project, implemented various mechanics
  • Psionic Roshambo @ Psionic Roshambo:
    They went all in on streaming, should have been more of a hybrid approach
    +1
  • BigOnYa @ BigOnYa:
    Or free government supplied high speed internet be nice also. Like Obama care. Xdqwerty that's cool, its time consuming but rewarding once done or playable, to see what you've made from scratch. Animations take forever, but worth it.
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, although the bullets are a bit buggy
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Not to mention this would be a massive pain to pirate
  • Xdqwerty @ Xdqwerty:
    @BigOnYa,
    and the visual aspect of the game is quite crude (the sprite that looks best is that of the protagonist just because he is a stickman with sunglasses)
    +1
  • BigOnYa @ BigOnYa:
    There is a bullets behaviour you assign to your character, that makes the code easier, under "behaviours"
  • Xdqwerty @ Xdqwerty:
    i meant that when the character is pointing to the right, the bullets spawn where they should, but when he is on the right, they move to the right but the spawn point is incorrect
  • BigOnYa @ BigOnYa:
    Itch.io has lots of free assets also. Under the bullets behavior tab, there is a "rotate bullets" option, can try that. Or in the code can try
    - fire bullet Player.X(PlayerDirection)
  • Xdqwerty @ Xdqwerty:
    im taking a break for today anyway
    +1
  • BigOnYa @ BigOnYa:
    YEa gotta after a while, looking at code for long periods will bug your eyes.
    +1
  • BigOnYa @ BigOnYa:
    That's cool tho, I'm proud of you going back to it, not giving up. It is difficult at first to learn, but fun once you get the hang of it. I think I've watched every tutorial video there is, but I still struggle sometimes to get stuff to work right. But gotta keep trying dif things, and eventually you will get it right.
    +1
  • K3Nv2 @ K3Nv2:
    Lol McDonald's has a grandma mcflurry
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, furry grandma?
  • BigOnYa @ BigOnYa:
    It sounds good actually, I like butterscotch
  • K3Nv2 @ K3Nv2:
    It sucked don't know wtf these little bits and pieces are they use now
    +1
  • BigOnYa @ BigOnYa:
    I live maybe 3 minutes from a Dairy Queen, so I would just go there for ice cream anything anyways. I usually get the Oreo Blizzard, or a Peanut Buster Parfait.
  • Xdqwerty @ Xdqwerty:
    whats a dairy queen?
    Xdqwerty @ Xdqwerty: whats a dairy queen?