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.
631
questions
0
votes
1
answer
56
views
Windows Batch Command to Rename a File
I have a file named:
ORA_GL_2023-09-19_12-36-47.TXT
That needs to be renamed to:
ORA_GL_2023-09.TXT
I tried
REN ORA*.TXT REN ORA_GL_????-??.TXT
without success.
Greatly appreciate assistance on this!
0
votes
0
answers
13
views
Batch to add current datetime to filename [duplicate]
I would like to add the current datetime to all filenames in the current directory.
I think this can be done with batch/xcopy like:
xcopy /s /x c:\xxx\*.* c:\yyy\*%datetime%.*
@RockPaperLz: thanks for ...
0
votes
1
answer
34
views
How can I check the value of ReturnValue of a WMIC command?
When running WMIC commands sometimes the ReturnValue is not zero, indicating an error, such as :
wmic.exe ComputerSystem where "Name='%computername%'" call Rename Name="%newname%"
...
2
votes
1
answer
52
views
sftp rename (mv) with wildcard
I use sftp to download files from a server nightly. Presently I batch download them with this sftp script:
chmod 444 /home/sftpserveruser/.HL7
get MTB.HL7 /data/hl7/downloads/mtb/
I'd like to be able ...
0
votes
1
answer
70
views
How to Rename Multiple Files at Once in Windows
So i'm trying to rename few videos in separate folders to same name
and i did it without using cmd, so i just used the search box on the right side
And searched to as mp4 files and named them to &...
0
votes
0
answers
86
views
Flatten Folder Structure, Move Files from Sub-Folders to Main
In Windows command line, is there a way to bulk move all the contents of subfolders up some levels? In other words, a way to get rid of selected subfolders while keeping their contents? I would like ...
3
votes
1
answer
614
views
How to rename Bluetooth device in Windows 11 Pro 22H2?
All the guides that I managed to find (namely this one, this and this) seems to be pre 22H2. The Control Panel section named Hardware and Sound → Devices and Printers seems to be no longer exiting in ...
0
votes
2
answers
86
views
How to use Command-line to batch-rename the FOLDER prefix using wildcards
So it has been mentioned that REN can be used to rename a FOLDER, but wildcards are not allowed.
I have a directory with a couple of hundred FOLDERS, where I want to remove the first seven characters (...
0
votes
2
answers
172
views
Recursive directory rename with subfolder level control
My Challenge: Recursively renaming the 3rd subfolder {subf3} and beyond {subf4, 5, 6, ...} of a root path to keep only the first 4 characters of their original folder name.
e:\ {rootf} \ {subf1} \ {...
1
vote
2
answers
132
views
Batch remove irregular suffix from folder names
I have a series of folders named in the following fashion:
11.23 John Smith
12.912 Kate Spade
23.34 Alexander McQueen
22.E01 Michael Kors
I want to rename the folder names to just:
11.23
12.912
23.34
...
3
votes
1
answer
336
views
Windows Explorer doesn't show updated names when changing capitalization (multiple files via script)
If I have 5 or more files in a Windows Explorer folder and I rename them with a script that only changes capitalization, Explorer doesn't automatically "refresh" and show the new names in my ...
-1
votes
1
answer
368
views
How to remove a specific constant string in Power Rename?
I have several files with names like
The wonderful way to happiness () (My-StoredLibrary).azw3 and
The best Paint to use on Canvas () (My-StoredLibrary).azw3
Note the spaces and dashes I want to ...
1
vote
1
answer
107
views
Batch rename movie folder(s) to movie file inside of folder?
I would like to rename my movie folder names to match the movie file name inside the movie folder. The movie files have the right names but the folders do not.
I've found batch file rename options for ...
3
votes
1
answer
59
views
Repeatedly renaming the same files in finder
I am trying to create an Automator workflow which renames all new files added to my desktop folder which do not begin with the prefix 2023 or Home to include the creation date in the following format ...
0
votes
2
answers
272
views
Is there a way to mass rearrange parts of a file name for many files in Windows Command Prompt?
I have a folder of files where the names of the files are dates. I need to change the names of the files from mm-dd-yyyy.eXtension to yyyy-mm-dd.eXtension.
This is what I currently have:
03-31-2019....
1
vote
1
answer
859
views
Powershell rename with variable and special characters
I’m trying to rename some files. In the path and filename there are symbols like [, ] and spaces.
The rename command says it can´t find the file.
There is a main file with the symbols and a "temp&...
0
votes
0
answers
48
views
Bulk Rename Files and Replace Suffix with Counting Suffix
I have a folder of bulk jpg files that are numbered counting up starting from 001 but there are files that get deleted or replaced in the middle. So I am needing to bulk rename the files, first ...
0
votes
0
answers
18
views
Trouble renaming files
I'm trying to 'rename' 230 files in 'Finder'. These are all photos. I select all 230 of them, right click and select 'rename', and then type the name 'Dallas-' and start the numbering at '1'. It's ...
0
votes
1
answer
98
views
Removing partial file name at the end before the file format at Windows CMD [duplicate]
I need to remove "asc_" and "cs" across hundreds of file names which the middle portion is a unique name. I was able to only remove "asc" based on below rename command.
...
2
votes
2
answers
239
views
Batch rename all files in folder with invalid NTFS filenames (ending with space)
I got a folder with filenames ending with space (after the extension), like this:
"File.txt "
Windows, of course, doesn't like me rename/erase/move the file.
I noticed that I can rename it ...
0
votes
1
answer
125
views
using rename in linux force rename of folders and thus force merge them
using rename in linux force rename of folders and thus force merge them
I have folders like (random example) with files in them (that can be identical).
b_001 c_001
b_002 c_002
b_003 c_003
b_004 ...
1
vote
1
answer
401
views
How to rename a file by adding a prefix to two timestamps?
I have several sets of files, all named 12-34-567 - 12-34-567.ext, so basically a timestamp followed by a space, a hyphen, a space, another timestamp, and the extension.
When I try to rename them in ...
0
votes
1
answer
243
views
How to add prefix to folder name using wildcard without using Powershell
i wanna create a batch script to rename C:\Program Files\WindowsApps\Microsoft.GamingServices_4.66.30001.0_x64__8wekyb3d8bbwe to +Microsoft.GamingServices_4.66.30001.0_x64__8wekyb3d8bbwe but version ...
0
votes
0
answers
43
views
Different sorting by name in Windows Explorer and other Apps
i noticed Windows Explorer and many apps like Winrar sort folders by name like this order:
(test
)test
.test
@test
_test
+test
0test
1test
atest
-atest
but in some other apps like 7z and unlocker, i ...
2
votes
1
answer
278
views
Is it possible to rename a USB flash drive and transfer files onto that drive with one script?
I am using a batch (below) found elsewhere to facilitate moving the files onto the USB flash drives, but want to also rename the flash drive in the process. How would I incorporate the renaming ...
0
votes
1
answer
168
views
I broke my Kali desktop for a user after trying to rename them
The issue probably comes from the fact that I used pkill to allow me to rename the user. But anyway after logging back in as the user, my desktop had no menu / hotbar. Each time I login the terminal ...
0
votes
1
answer
45
views
How can I find original or past filenames if I did not created a security copy or a point of restoration?
I used a program for changing file names in a masive way, that program I used was "reNamer", but now I'd like to return all the original names because I believe I made an error when I tried ...
1
vote
0
answers
173
views
Replace 2 of 3 hyphens in a filename with SPACE hyphen SPACE in Powershell
I have been attempting to modify the following example given for a similar question in Powershell, to match my own needs. Running the example works fine.
Please could you assist in how to change the ...
0
votes
3
answers
320
views
Batch Rename Files by Switching Two Parts of the Name
I'm new here and don't have any coding knowledge or experience or software, but I use Windows 10. I have LOTS of files named like:(1) 2020-03-12.mp3(7) 2021-04-10.mp4(6) 2022-08-25.docxetc.They're mp4,...
1
vote
1
answer
330
views
How to batch rename Files, moving character to the end
Having previously used batch files to rename files with success, I thought this would be possible, but I just cannot get it to work for this case.
I have the following files which I'd like to rename ...
0
votes
1
answer
593
views
How can I remove the folder name from a filename?
I have a lot of files that have names of the format:
[Folder name] [File name].txt
that live in the correct folders - e.g:
+- Folder 1
+- Folder 1 File 1.txt
|- Folder 1 File 2.txt
+- Folder ...
1
vote
1
answer
3k
views
How can I use Powershell to rename all files where the name has the format "digits [space] name with spaces" to "digits [hyphen] name with spaces"?
I have a lot of files with names of the format "digits [space] name with spaces" or "(digits) [space] name with spaces" e.g.:
23 Filename 23 with spaces.txt
(47) Filename 47 with ...
0
votes
0
answers
137
views
Is there a way to Name a specific Chrome Window on startup?
I would like to be able to open chrome, either by clicking on the chrome.exe or by clicking on a URL, and as a result, chrome would launch with a specific window name.
I just want to have my chrome ...
0
votes
2
answers
2k
views
Rename command in dos
this is my first question here. I just revived an old pc to play dos games.
I couldn't rename a folder, but I can rename files. Any idea why?
Q2:
How to see the full folder name in dir command? I see ...
0
votes
1
answer
2k
views
How to implement regex on a powershell find and replace to quickly change file names in windows 10?
Hi I have a set of files in a folder (windows 10) that are named something like this:
asfdjlaksjfdi09908jfakl.part1.rar
aabdjkhihsdjkf.part2.rar
sdjklufia9798uiownlnsadkfasdFASDFrwe34342.part3.rar
... ...
0
votes
2
answers
141
views
How to implement IF statement, in my online powershell command
I am running a powershell command in my batch file to remove brackets from foldernames, but it renames all folders in the path, and it gives me an error if the foldernames doesn't contain brackets.
I ...
2
votes
1
answer
152
views
Script to iterate on all utf8-based files and rename them based on content found [closed]
You may skip the following which is a preface that provides some context to what I am trying to do:
I have a lot of files which are data points of a Nasa satellite (MERRA-2) of different cities. When ...
1
vote
2
answers
875
views
"sendto" all selected files into a folder
I found this lovely time saving script which has helped me a lot.
@echo off
cd /D "%~dp1"
md "%~n1"
move %1 "%~dp1%~n1"
Script found here Application that will move file ...
3
votes
1
answer
160
views
Moving renamed files to folders according to their extension
Windows 10 system - Powershell tool.
I have 5 folders on my PC each containing 2 subfolders named images and json, each images subfolders has 3 png files numbered 1.png, 2.png and 3.png. The json ...
2
votes
1
answer
2k
views
Get-childitem to sequentially rename files from different subfolders
Windows system using Powershell.
I have 5 folders on my PC each containing 2 subfolders named images and json, each images subfolders has 3 png files
numbered 1.png, 2.png and 3.png. The json ...
0
votes
1
answer
202
views
Enclose the year in parenthesis in a filename
I have a group of files in a folder that I want to rename; each file has a 4-digit year as part of the filename, I would like to enclose the years in parenthesis.
"Ghostbusters 3 2016.avi" ...
0
votes
2
answers
882
views
Move part of the filename to the front of the filename
I want to move a part of the filename to the front of the filename.
All my files have a delimiter # in them, such as: 2585#xxxxx#4157.pdf.
Now I want to move the part after the last # to the second ...
0
votes
1
answer
613
views
Rename files from different to same name with different extension
I have 12 folders with each containing two subfolders: "Images" & "Json". Now each "Images" folder has 10 image files named from 1.png to 10.png and each "Json&...
1
vote
0
answers
133
views
Rename a file based on a selection list
I have to rename thousands of image files with a set of name list such as photos of products named as topview, topview1, topview2, etc., and sideview, sideview1, ..., sideviewn, backview, ...
0
votes
0
answers
777
views
How to remove a section of multiple file names?
I have many files with a wildcard section I'm having to manually remove and was wondering if there was a way to do it automatically, for example I would want to rename:
Perfect Dark#43DDCBF0#2#0#...
0
votes
1
answer
2k
views
rename all files within a directory and its subdirectories with batch script
I would like to rename the name and the extension of all files which are located in the a certain directories and its subdirectories to a random combination of 25 alphamuneric signs (letters and ...
1
vote
2
answers
2k
views
Change folder name with the name between ( ) with powershell
I have a folder structure and in all the folders there is a part between ( ).
Like "folder example(12345)"
Now I must rename all the folders with the name that is between ( ).
So the result ...
0
votes
1
answer
76
views
Append Character to specific Part of name using Rename Command
I am stock on a question using the rename command. I am having a list of files which are named as followed :
FT_440210.jpg
FT_4302110.jpg
I need to append "AGF" between FT_ and 440210. ...
0
votes
2
answers
228
views
Rename Multiple Files without downloading additional software
Something went wrong with backup and recovery when I was resetting my laptop.
Now I am left with all my files looking like this:
I tried to re-add the drive as a recovery option through windows ...
0
votes
1
answer
1k
views
Make The Folder Name The Same As The File Names
I have a directory structure as below:
Folder
> FileName1.abc
> Filename2.abc
> .............
Folder2
> FileName11.abc
> Filename12.abc
> ..............
>...