Questions tagged [rename]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
25 views

How to rename multiple files by deleting a portion of the File name when the characters are not always the same

I was hoping someone might be able to guide me in what I wish to do. I have found a previous post that showed the following PowerShell statement that has worked wonders for me renaming some files I ...
-2
votes
0answers
27 views

Subtract / Add 1 from all file names (rename them) in a directory - Windows 10 [closed]

I have a directory which contains image files with names like 001.jpg 002.jpg 003.jpg ... How do I increase/decrease a certain number (for example 1) the name of all files? I would like to have ...
0
votes
2answers
49 views

Using Windows rename to replace a single underscore with a double?

Can anyone advise me where I am going wrong with this? I have some file names that contain XXX XXX_Layer_XXX and I'm trying to replace to XXX XXX_Layer__XXX My attempt so far was: ren "*Layer_*.*...
3
votes
2answers
438 views

How to rename my folder and any of its subfolders into lowercase using command prompt in Windows?

I have many folders and subfolders. They have random uppercase or lowercase letters in their names. I'd like to rename all of them into lowercase version. I see many answer here about renaming files ...
0
votes
0answers
22 views

How to rename collection of pictures after adding new pictures between, including previous descriptions

For example, I have a bunch of pictures in a folder, named daddy_garden filename daddy_garden001.jpg daddy_garden002.jpg ... daddy_garden057.jpg daddy_garden058.jpg ... With my program 'Where ...
0
votes
1answer
20 views

Using wildcards to do mass copying to slightly different names

I want to copy many files inside a single directory. An example filename starts with error042021.mysite and I want the new name end with -dev.co.at.txt. I think I need a wildcard for the number, ...
0
votes
0answers
10 views

CentOS 8 - Rsyslog rename logs

I want to rename logs that I get on my CentOS coming from other networking devices, but I am not sure how to do that. This is the template that I configured in rsyslog.config file: $template ...
-1
votes
4answers
62 views

Batch file to multiple rename file name in a folder with a criteria for Windows 7

I use Windows 7 64 bit and I have a list of files with with the name of the file composed of author - album name - name of the song I need all the names of the files to become author - name of the ...
0
votes
1answer
77 views

Can git automatically rename files during clone/pull/commit?

We have a collection of scripts, which have, historically, had a different name-prefix depending on whether they are used in production or a lower environment. We're switching to git now, and would ...
0
votes
4answers
70 views

Batch identify and rename files with no extension

I have a folder of thousands of files in different formats but without any extensions. I know how to detect unknown file types using the tools such as TrID - File Identifier and DROID: file format ...
0
votes
2answers
40 views

Batch rename multiple files by modification date

I got a bat script for rename files by their creation date but I need to adjust the code below to made to rename files by modification date. @echo off set Folder=%userprofile%\desktop\Images For /f &...
0
votes
0answers
36 views

How to rename using the CMD a folder opened in Explorer?

I need to rename through CMD a folder that has a subfolder open in Explorer. Folder/ <= I need to rename this folder. Subfolder/ <= It is open in explorer. files... But whenever ...
0
votes
1answer
35 views

How can I change the path name of a folder when it remains unchanged after renaming?

I am currently using a Windows 10 computer. The situation is like this: I copied and pasted a folder called "abc" in the same folder where it existed. After pasting, the folder name of the ...
0
votes
1answer
40 views

Files that Cannot be Renamed on Mac/Mojave

I have a number of image files that I cannot rename on my mac. Some files in the same directly can be renamed. Others cannot. I clearly have read/write access to the directory because I can rename ...
1
vote
0answers
23 views

Removing multiple parts of a file name using cut

I have a bunch of files named like so: CI2_S1_20201120_S75_L001_R1_001.fastq.gz CI2_S2_20201120_S76_L001_R2_001.fastq.gz AV2_S2_20201120_S61_L001_R2_001.fastq.gz and I want to rename the files to ...
2
votes
2answers
180 views

batch file to rename folders creates new folders

Because I have multiple back-up copies of all files, I use the following batch file to rename files so that I don't have to go into each drive/folder to rename files manually. The batch file works ...
0
votes
0answers
12 views

Shell Script to find 2 digits between spaces in a filename and append a letter

I haven't worked much with windows shell scripts yet, but I think they'll probably the best approach for what I'm trying to accomplish watch a folder for new files (otherwise I'll take the task ...
0
votes
2answers
247 views

Unexpected error 0x8007000D “The data is invalid” when moving or renaming folders in Windows 7

A few weeks ago I began seeing this error every time I try to rename or move a folder in Windows 7 SP1: ] Things I've already tried to resolve this: Remove ALL Explorer addins and shell extensions, ...
1
vote
0answers
114 views

Cannot change tab label in MobaXterm

I am using MobaXterm v20.6 and WSL2+Ubuntu 20.04 from Microsoft Store. I am trying to label the tabs defining PS1 like: PS1="\e]0;\u@\h\a\w #" but tabs are still labeled as "1. WSL-...
1
vote
2answers
130 views

Start menu items without “Open file location” option to them: how to rename? (Windows 10)

Just upgraded my wsl Ubuntu distro to 20.10 "by hand"; the start menu entry name remained "Ubuntu 20.04 LTS" and I would like to rename it accordingly. How to do it? The problem is ...
0
votes
2answers
283 views

Changing hyphens (-) to underscores (_) on Win10 for many files: Windows search hack

I have a directory with various files and some of the filenames have subparts separated with hyphens / dashes i.e. - e.g. foo-bar.pdf Unfortunately this seems to confuse Windows 10 Explorer's search. ...
0
votes
1answer
49 views

Renaming pdf files to include the parentfolder name as the prefix, and including a unique suffix

Please can you help. How can I rename pdf files to include the parentfolder name as the prefix, and adding DRAFT as a suffix? For example, for parent folder name \ABCDEF: xyc123.pdf fgh456.pdf I ...
0
votes
2answers
111 views

Find text in files and then rename the files, in Batch

i'm having some problems creating a script that find a specific text in each file inside a folder, get the content after that text and set it as a name for the file, all that inside a loop, to perform ...
1
vote
0answers
39 views

Rename a file with special characters and symbols? [duplicate]

I have read carefully the answers on this post. None of them helps me. I have accidentally download a file with non-ASCII characters into my Windows desktop as shown. I cannot move it or rename the ...
0
votes
1answer
38 views

Recursively renaming files under subdirectories with the directory name with Linux rename

Problem statement: I have a number of directories, corresponding to series names, and random filename underneath each, as follows: Title.S01E01/1234abc.mkv Title.S01E02/5678def.mkv Title.S01E03/...
0
votes
1answer
99 views

Command Line Rename of directories with wildcard at the end

I have some folders, such as John Doe - 03 November 2020 1234 John Doe - 03 November 2020 1259 Jane Doe - 03 November 2020 1234 I want to rename these folders with a prefix (ex: "1_" or a &...
0
votes
1answer
15 views

rename regex is failing to rename files

I have a bunch of images like 1.jpg 2.PNG 3.gif 4.jpeg in a directory. I want to rename them all to 1-s.jpg 2-s.PNG 3-s.gif 4-s.jpeg. I tried running these commands but it had no effect on files in ...
1
vote
2answers
122 views

How to read files name last character and and rename them by running a batch file

I have 3 files in a folder which are: XXX_a.txt XXX_b.txt XXX_c.txt The filename can be varied, only the last character of the 3 files a, b and c are not changed I need to rename the files as below: ...
0
votes
2answers
203 views

Bash script to rename PDF files based on filename [closed]

I want to write a bash script to periodically rename incoming PDF publications. When the PDFs are downloaded they have filenames in the following format : <Pub.Name>-<Day>.<Spelled ...
1
vote
1answer
74 views

Double escape not working for special character (Windows batch file)

This works in a batch file to remove a word from all file names, for example "UnwantedWord", on the line with "SET MODIFIED_FILENAME"... setlocal enableextensions ...
0
votes
1answer
50 views

Windows rename multiple files from multiple folders having pattern

I have a folder in which there are multiple sub-folders(only one level) which has multiple files. Names have some dynamic prefix that I want to remove based on pattern in it. 1. ...
1
vote
0answers
49 views

How to bulk rename files numerically with different file types in Windows 10

I'm trying to bulk rename an anime with multiple video types(mkv,mp4, and ogv) which increments with (num) that corresponds to what episode that is. Problem is, if I rename both mp4 and mkv with the ...
0
votes
6answers
628 views

Renaming a section of filename for multiple files in powershell or command prompt

I have some 100s of files having names like this: MOD15A2H.A2012001.h26v06.001.2015230181014_LAI500m.tif MOD15A2H.A2012009.h26v06.001.2015236194306_LAI500m.tif MOD15A2H.A2012017.h26v06.001....
0
votes
0answers
33 views

Commands in batch file behaves differently when run from windows scheduler

I have a bat file, which should delete folders with files not in use from specific location (to determine folders with files not in use I try to rename folder): @echo off rem folder to clear: set tdir=...
1
vote
1answer
477 views

How do I rename a SSD (NOT the label)?

How can I rename a SSD's actual name like its model name? I had used Sabrent Control Panel to check for a newer firmware on a non Sabrent NVMe, it said there was a firmware available, but I did not ...
0
votes
2answers
49 views

Efficient way to rename files

Problem I have two folders: folder1 and folder2. folder1 has 39 files with filename of the form Screenshot (n).png, where 1 ≤ n ≤ 74, not in order. D:\folder1 Screenshot (1).png Screenshot (2).png ...
-1
votes
1answer
36 views

batch rename of files in a specific dir [closed]

I need to create a .bat file that would remove the first 11 characters from pdf files in a specific dir. Can you please help? This should be easy for a coder, I think. Thanks.
2
votes
2answers
195 views

Windows rename multiple images

I have a folder containing only images: 1.png 2.png ... 11000.png I want to rename these files, adding a p as follows: p1.png p2.png ... p11000.png How can I achieve this, as I've tried the ...
0
votes
1answer
41 views

Renaming disks: from D: to F:

How do I rename in Windows 8 disk label from D: to A:, say ? I do know how to rename the label from KINGSTON to USB say, though.
1
vote
2answers
762 views

How do I rename the **entire** path

I need to rename (in particular not to copy nor to move) in Windows 8.1 this file path D:\Users\hynek0\1703.08094.pdf – zástupce to this path C:\Users\hynek0\1703.08094.pdf – zástupce Here, – ...
0
votes
2answers
222 views

is it safe to rename an exe?

Of course, it's a given that if another program depends on the exe in question, it's a bad idea. But for something non-system and independent (an installer, a cli / gui tool), is there anything that ...
1
vote
0answers
56 views

How to rename 'C:\Users' folder in windows

I have 2 HDDs, I am tring to mount the 2nd HDD to an empty NTFS folder C:\Users or C:\Users\<username> (which is not empty). My approach: is to rename that folder to temporary name, then mount ...
1
vote
2answers
400 views

F2 key on my keyboard is getting triggered automatically. How to disable it?

I'm using Asus gl502vt laptop, since last two months I'm facing an issue with the f2 key. Its getting auto pressed randomly out of no where. I tried re installing the os/drivers but nothing helped. ...
0
votes
2answers
79 views

Renaming a batch of folders to follow a certain pattern

so I have a bunch of folders that are numbered like 1, 2, 3, 4, 5... 150. I would like to change the names of these folders to follow a 3 digit pattern, so instead they become 001, 002, 003, 004,.. ...
2
votes
3answers
1k views

Renaming multiple folder using command line

I am trying to rename multiple folders at once, removing the first few characters of their name: I found resource around but none of the command that I have tried worked: 2 - AT5CRO5JUDBWD4RUPXSQ 4 - ...
1
vote
0answers
34 views

Can I disable the renaming behaviour in Windows File Explorer?

When you click a file or folder name in Explorer, that object gets selected. But if it is already selected, Windows thinks you want to rename it. I find this annoying, because almost always that is ...
4
votes
2answers
105 views

Removing part of files names and giving the name of one file type to another

Suppose I have a folder with rar and pdf files for a group of people. Each person has a unique code, and he/she is associated with two files Full name <unique code>_dummy text to remove.rar and ...
2
votes
4answers
406 views

Is it possible to use multiple delims based on character position rather than character value in Windows 10 Command Prompt to rename files?

The problem and question in a nutshell before the verbose details of my quest below: In windows-10 command prompt, I need a single ren command to rename all files in the following format: vfx_444xx....
0
votes
2answers
232 views

Batch edit file properties by parsing filename text

Problem I'm trying to batch process and organize some old video files. In order to catalog the files, I wanted to update some metadata so that it would show up in my catalog software, abeMeda (aka ...
0
votes
1answer
111 views

Rename files which have $'\r at end of file name (including recursive in folders) without using rename

I have a ton of folders with jpg files in on a linux system. However I accidently moved them using a sh file that i made in windows. Therefore instead of the files and structure being like this if ...

1
2 3 4 5
12