Questions tagged [batch-rename]

Batch renaming is a form of batch processing used to rename multiple computer files and folders.

Batch renaming is a form of batch processing used to rename multiple computer files and folders in an automated fashion, in order to save time and reduce the amount of work involved. Some sort of software is required to do this. Such software can be more or less advanced, but most have the same basic functions. Batch renaming software exists for most operating systems.

Reference: Wikipedia

924 questions
3
votes
1 answer

What is %f in the for loop command?

From this example right here. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/for#additional-references for %f in (*.doc *.txt) do type %f In the preceding example, each file that has the .doc or .txt extension in…
PredictableBeaco
  • 97
  • 1
  • 1
  • 8
3
votes
5 answers

Rails: renaming a controller and corresponding model

Is there an easy way to rename a controller and model in my app and all the instances in the corresponding code? I'm using textmate, would this be as simple as using the replace function and replacing the word Post with Report?
trying_hal9000
  • 4,343
  • 8
  • 43
  • 62
3
votes
3 answers

PowerShell Command To Bulk Rename Files Sequentially

I am trying to make batch file naming easier for my end users. In photographing our locations, we can sometimes have only 1 photo or 500 depending on the size of the location. The code below works beautifully to bulk rename our photos based on how…
user63471
  • 39
  • 1
  • 2
3
votes
5 answers

Rename files to hash and extension

The question was answered here to the OP's liking, but I couldn't make it work 100% for me. What I want to do is take files in /home/hermit/Documents/Pictures and hash it before putting the new files in /home/hermit/Documents/HashPictures, while…
Epsilon
  • 133
  • 1
  • 5
3
votes
3 answers

Rename all contents of directory with a minimum of overhead

I am currently in the position where I need to rename all files in a directory. The chance that a file does not change name is minimal, and the chance that an old filename is the same as a new filename is considerable, making renaming conflicts…
Stigma
  • 1,686
  • 13
  • 27
3
votes
3 answers

files with extra suffix in batch

I'm trying to list all the files which have extra suffix after the extension E.g: .txt.1 or .txt.2 etc.. I'm using txt. but it's giving all the file names instead of only the files with extra suffix for %%A in (*txt.*) do (call :renum "%%A") after…
Bharath
  • 45
  • 5
3
votes
3 answers

How to rename all files over SSH

I am trying to rename all files in a remote directory over SSH or SFTP. The rename should convert the file into a date extension, for example .txt into .txt.2016-05-25. I have the following command to loop each .txt file and try to rename, but am…
Derek
  • 33
  • 1
  • 3
3
votes
2 answers

Rename txt-files using part of first textline in file

I have a need of a code used in a batch file that renames bankfiles created from SAP (I am a SAP-man), stored in a location on the server. Problem: All bank-files get a name from a sequence table in SAP (date + number). Before I send them to the…
Solve
  • 31
  • 2
3
votes
2 answers
3
votes
2 answers

Rename All Files in a Directory Using Python

I have a directory containing a number of files with this format: 1 or 2 numbers_S followed by 1 or 2 numbers_L001_R1 or R2_001.fastq Examples: 1_S1_L001_R1_001.fastq or 14_S14_L001_R2_001.fastq I want the file names to be like this: 1_R1.fastq…
MMiller
  • 43
  • 1
  • 1
  • 5
3
votes
1 answer

Git does not detect large rename operation

I make a sort of rebranding and rename all root folders inside the project. Smartgit sees all files as missing and untracked. When I commit some of them are marked as renamed in log but a lot of them not. I don't want to lose the connection with…
Vlad
  • 3,001
  • 1
  • 22
  • 52
3
votes
3 answers

Batch file rename reading old file name and new file name from a txt file

I have done some searching and reading but I have not been able to find a solution. I apologize if this issue is already answered on the forum. Here is what I want to do: I have many 1000's of files that I need to rename. I can easily create a…
Adrian
  • 33
  • 1
  • 4
3
votes
1 answer

Need a renaming script that strips filenames and adds folder name with increments

I need a script that will allow me to strip filenames to files that are placed within folders, and apply the folder names to the files, and add an incremental number to the end of each filename. So the filenames would look something like this in…
3
votes
1 answer

Copy file type from sub directories, into one folder renaming files so they don't overwrite

I'd like to copy one filetype from sub directories, placing the copies into one folder, renaming them so they don't overwrite. Rename it but keep the file extension. I don't care what it is renamed to, as long as each copy has a unique name so they…
machiavelli
  • 92
  • 1
  • 1
  • 9
3
votes
1 answer

How can I rename multiple files in Eclipse?

I'd like to rename multiple files(/resources) in Eclipse. Functionality by order of usefulness: Rename files in search results (i.e. search for pattern, see which files match Rename files using a regexp which runs on all filenames (e.g.…
einpoklum
  • 118,144
  • 57
  • 340
  • 684