In computing, rename is to reassign the identifying value (or name) of an object, whether it be files, folders or other types of data.

learn more… | top users | synonyms

1
vote
4answers
2k views

Batch renaming of files using regular expression in Unix

I have several thousand files of the form: [8-digit number]_[number I want]_S60491_I129111.dcm. I wish to remove everything except the number I want, and use that as its name. In Ruby, I can get to ...
3
votes
1answer
3k views

Append to start of filename

I'm trying to add the word [Replay] to all mp3 files in a folder using a batch file like so: @echo off for %a in (c:\folder\*.mp3) do ren %a [Replay]%a But it wont rename the files. all the ...
1
vote
2answers
2k views

Batch capitalise all folders, subfolders and files within

I am looking to rename all directories on a certain hard drive (not C:) by capitalising the first letter of every directory (so: \images -> \Images). Unfortunately I have not enough experience to ...
1
vote
4answers
3k views

Using PDF MetaData to rename PDFs in MAC OS X

I have a number of PDFs that I downloaded from JStor. They come with unhelpful numeric filenames, but often there is at least a title if not the author in the metadata. How do I batch rename a number ...
2
votes
2answers
2k views

Mass file renaming in Bash but keeping a section of the file name

I have a large number of .jpg file that have extraneous data ahead of a file id that i need to have removed to better set up my file structure for a later project. How can I do a batch rename in ...
4
votes
0answers
47 views

Turn off file extension rename warning on Windows XP [duplicate]

Possible Duplicate: Turn off change file extension warning in Windows 7 I'm so tired of hitting the Yes button on a procedure that would be easily revertible if I made a mistake. I rename ...
3
votes
3answers
4k views

Add folder name to beginning of filename

I have a directory structure as below: Folder > SubFolder1 > FileName1.abc > Filename2.abc > ............. > SubFolder2 > FileName11.abc > Filename12.abc ...
2
votes
1answer
2k views

“mv: cannot stat file” in for loop

I wanted to rename a lot of files with a pattern so I tried this for loop: $ for f in *; do mv \""$f"\" \""HouseMD-S06E${f#*Episode }"\"; done But I got this error: mv: cannot stat `"House MD ...
1
vote
3answers
676 views

Rename folder using script, variables from excel doc

Linux File System I have a directory with 1500 folders. I am looking to use an excel document that has the 1500 folder names in one column and a unique id in the next. I am looking to script it so ...
1
vote
2answers
240 views

windows rename command to rename file.a.b to file.b

I have a few folders with hundreds of html files. The file name should have been .htm but it is .asp.htm and it does not run. It is plain html file and there is no asp code. So, I tried to rename the ...
0
votes
2answers
505 views

rename command windows to rename *.a.b to *.b [duplicate]

Possible Duplicate: windows rename command to rename file.a.b to file.b I have a few folders with hundreds of html files. The file name should have been .htm but it is .asp.htm and it does ...
1
vote
1answer
4k views

Rename every file in a directory to remove part of filename [duplicate]

Possible Duplicate: Mass Rename Files with bash I have a directory full of files with names like this: 1418450360_72733601001_th-72713048001.jpg?pubId=1418450360 ...
0
votes
2answers
1k views

Remove chinese characters in foldername

I am running windows server 2003 and I need to find a way to mass rename folders that contains chinese characters. Basically I want to remove chinese characters but if I remove it then the folder name ...
1
vote
1answer
546 views

Renaming multiple files in various folders to the same name in W7

I have a bunch of directories, each one contains exactly 1 file named folder.jpg. What I would like to do is to rename all the files cover.jpg, but when I do search on *.jpg and try to rename, it ...
8
votes
3answers
2k views

Why can I rename a running executable, but not delete it?

Everything is in the title, but more officially : Why does Windows let me rename a running executable, but not delete it?
4
votes
2answers
2k views

MP3 file recognition, tagging, renaming [closed]

I have a bunch of MP3s with nonsensical/incorrect file names and only a few tags. Is there software out there that will read each file, find out the right tags, replace them and use the tags to make ...
2
votes
1answer
1k views

Renaming files according to the folder they're in

I have hundreds of folders named after movies. In each folder there's a .mkv file (or .avi, .mp4), named differently. In each folder there's a folder.jpg. I'd like to rename each video file so that ...
2
votes
1answer
443 views

Increment file number using zmv

I have a set of files that are named in the vein of "some_file-nameN", where N is a number starting at 1, incrementing, and ending somewhere between 10 and 30. I now need to insert a file at the ...
-1
votes
2answers
827 views

Batch rename images numerically? [duplicate]

Possible Duplicate: Rename lots of files in one click I have thousands of images that I wish to batch rename numerically. The issue is all the dozens of images I have saved have osbscure ...
1
vote
1answer
815 views

How can I work around Windows File Protection such that I can rename a system file?

How do I use PendingFileRenameOperations to rename a file which is in use? Especially system files, like tcpip.sys. I have created a key PendingFileRenameOperations (REG_MULTI_SZ) in ...
46
votes
3answers
59k views

How does the Windows RENAME command interpret wildcards?

How does the Windows RENAME (REN) command interpret wildcards? The built in HELP facility is of no help - it doesn't address wildcards at all. The Microsoft technet XP online help isn't much better. ...
2
votes
2answers
147 views

Rename a file to move the version number from the end to the beginning

How do I rename a file in linux and take the version # from the end and move it to the beginning. For example I have a file name: Random text - text 1.1 (SD).mp3 to 1.1 Random text - text.mp3 ...
0
votes
2answers
737 views

Recursively rename all files in directory by using relative path separated by underscores

I have a directory structure like below where the structure is known, and the file names repeat themselves. I want to rename the files so they are unique, so that a/0/widgets/AL/part-1.gz becomes ...
2
votes
3answers
457 views

Batch rename of several files [duplicate]

Possible Duplicate: How can I mass rename files from the command line or using a 3rd party tool? We have several files with filenames similar to below: ...
1
vote
2answers
640 views

Renaming Nginx 1.3.5 Server: response header

In nginx 1.2 & 1.3 you can modify the source to change the name: src/http/ngx_http_header_filter_module.c (lines 48 and 49): static char ngx_http_server_string[] = "Server: Not Nginx" CRLF; ...
0
votes
3answers
10k views

Override mapped drive name using .bat script?

I have the following batch script which is successfully mapping a few of our drives for our users: @echo off net use * /delete /yes net use x: \\192.168.1.52\xrays net use s: \\192.168.1.52\common ...
1
vote
1answer
894 views

Get a colon in a Windows filename [duplicate]

Possible Duplicate: How would I go about creating a filename with invalid characters such as :?>? Yes I know it is not allowed, but I want to do it anyways. Any workarounds?
4
votes
3answers
4k views

How do I rename a User folder in Windows 7

When setting up my new computer, I accidentally gave my account the wrong name. I was able to amend the name of the user account in the control panel, but the folder the user files are stored under is ...
2
votes
3answers
9k views

How do you quickly remove underscores from folder names?

What is the easiest and fastest way to remove underscores from folder names in Windows? Running a Google search I found a VB script that automatically removes all underscores from file names in the ...
1
vote
2answers
767 views

How to automatically change file names for all file added to a directory?

I've created a folder in dropbox for all my screenshots, and redirected all my screenshots there. However the default screenshots file name are long (it contains a time stamp and I don't see how to ...
1
vote
0answers
133 views

Rename files and adding a prefix according to groups

Let's say I have files in side a folder named abc001.jpg abc002.jpg abc003.jpg abc004.jpg abc005.jpg . . . acb999.jpg Let's say group1 is abc001.jpg abc002.jpg abc005.jpg abc010.jpg and group2 ...
0
votes
3answers
9k views

Rename files in a batch file

I want to rename file1 to file2 using a batch file in Windows 7 but with no luck. Below is the batch file: @echo off c: cd\test ren file1 file2 Error message I get is syntax error. Update to ...
1
vote
1answer
203 views

Renaming Windows XP computer

I am running a Windows XP VirtualBox Virtual machine, but get the following error: The following error occurred attempting to rename the computer to "VM1": Logon failure: unknown user name or bad ...
133
votes
1answer
40k views

How do I rename a session in tmux?

When I first started using tmux, I didn't give my first session a name. Then, as I started creating different sessions for different tasks (work, play, etc), I started naming my sessions. Now I have ...
1
vote
2answers
940 views

Change renaming pattern in Win 7

Is it possible to alter the built in mechanism for mass renaming in Win7? Lets say, is it possible to make it use a pattern like this? name-001.ext name-002.ext
0
votes
0answers
7k views

CMD - Rename Local Computer, Join Domain, Join Specific OU

Alright so not sure if this is entirely possible all in one. Situation: Brand new computer not on the domain, just a local workgroup. Want to change that computers name, join a domain, and put the ...
7
votes
2answers
4k views

Batch rename files in Linux

How I can rename images with 'rename' command from "something_full.jpg" to "something_500.jpg" recursive?
7
votes
3answers
6k views

Mass Remove File Prefix on a Mac?

How do I mass remove file prefixes in a Mac? For example, inside my folder, I have the following files: img_sometext1.jpg img_sometext2.jpg ... img_sometext10.jpg How do I remove img_?
1
vote
0answers
418 views

Auto rename files through excel sheet or through folder of these files

I have excel sheets with lot of files names like.. I want to renames all files through excel sheet and renames files itself.. Or 2nd condition is , if i rename files my self and rename in excel sheet ...
4
votes
2answers
5k views

Renaming/deleting impossible filenames in Windows 7

I have some files with 'impossible filenames'. I'm not talking about special characters or anyting, but really impossible ones. (filesystem NTFS) One file is called images\receipt.jpg (yes, this is ...
3
votes
2answers
570 views

How can I swap the names of two files on the command line?

I am working in bash under Ubuntu 10.04 at the moment, but the solution would be interesting in other environments as well (e.g. Windows cmd.exe). I would typically rename the first file with a ...
0
votes
2answers
2k views

Batch file: Change names on files with certain extensions in multiple directories based on the directory name and copy into one directory

I am all new to batch files and DOS, but I hope you can help me anyway. I need to copy files of a specific file type that are now in separate subdirectories, one such file per directory(but more ...
4
votes
4answers
10k views

How to append a string to a file name in Bash Shell?

So I am supposed to find all the files in the given directory with surffix of .C or cc, and change their name to .C.blah or .cc.blah Is there a command to do that? Or should I implement this with ...
9
votes
1answer
19k views

Recursively rename files through the command line (Windows 7) [duplicate]

Possible Duplicate: Which command can I use to recursively rename or move a file in Windows? Is there a way, through the command line, to recursively rename all .m4v files to .avi? ren ...
1
vote
3answers
2k views

How to batch rename files based on file header/metadata in Windows?

I have a directory full of randomly named files of different types, all with no file extensions. Most are images, with some videos, and some plaintext. I've used one of the Windows versions of file to ...
-1
votes
1answer
1k views

Facebook photos: batch renaming to useful filenames [duplicate]

Possible Duplicate: How can I do a mass file rename in Windows? Scenario: I work with a journalist friend who writes and photographs for travel and art subjects. He uses his Facebook ...
1
vote
3answers
2k views

Replace umlauts with regular expressions

I would like to sync several folders on my local Mac with a remote server via SFTP. As the existing umlauts appear to be problematic for my syncing software (Deltawalker), I am looking for a way ro ...
2
votes
1answer
247 views

Need assistance making a batch file for renaming files in separate folders

Ok, here's one for you. I'm trying to use a batch file to rename a bunch of files, but none of them are in the same folder as the batch file itself. The command prompt keeps telling me that the ...
2
votes
4answers
1k views

Mass Rename Files with bash

I've got a bunch of numbered files like this: file #01.ext file #02.ext file #03.ext file #04.ext file #05.ext And what I want is to make them all have three digits (two leading 0's) instead of ...
7
votes
2answers
2k views

How to determine exactly which file actions will be reverted when doing an Undo in Windows Explorer?

I had a brain fart and forgot which was the last file action I performed in Windows Explorer on XP SP3. Explorer offers an undo but I am not 100% confident I remember what was the last operation I ...