Questions tagged [batch-rename]
This tag is about the renaming of large batches of files.
327
questions
2
votes
1
answer
47
views
How can I add current file size to the file name
I lost heaps of important data, plus failed backups etc. I did some recoveries but laptop drive had other plans, pushed data out of valid files + some recovery files had mismatched names or recovered ...
7
votes
3
answers
4k
views
How can I skip a cycle in a FOR loop?
I am running a Batch script for processing some files. When it determines that the current file needs no processing I would like to skip the rest of the commands for that file and move directly to the ...
-1
votes
1
answer
153
views
rename files recursively by adding a string at the beggining of file in linux
i tried many commands. No one did the job.
how to use rename / find or something else to add a string at the start of files in subfolders, reculsively?
example file.jpg --> image_file.jpg
find . -...
3
votes
1
answer
217
views
PowerShell: How to Batch Rename Using Split
I'm new to PowerShell to try and Batch Rename files. I'm deleting unique fields from the file which I managed to Using Split. I can't figure out how to Rename them. This is how I got the file names to ...
7
votes
4
answers
22k
views
Is there a way to change multiple file extensions at once on Windows 10?
If I have a bunch of files with one file extension, is there a way to quickly change them to another file extension without having to manually change one file at a time? The Microsoft support page ...
0
votes
2
answers
435
views
Proton Drive file renaming and data duplication issue [closed]
I use Proton Drive to backup some of my data, and at one point when I was trying to restructure the directories within my Proton Drive account I found, some hours later after I had awoken, that Proton ...
2
votes
2
answers
406
views
Powershell (windows 11) move files and rename
I am trying to write PowerShell that will allow me to clean up files and place them into folders and rename them to include a date in the filename, and once I work out the commands, I will script it.
...
0
votes
1
answer
246
views
Can I use a .bat file to rename all the FOLDERS in a directory?
Can anyone please help me figure out how to strip-off or remove part of all of the FOLDER names in a directory? I’m trying to remove this 7 character string “SSA RI ” (including the middle and ...
1
vote
0
answers
264
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 ...
0
votes
2
answers
526
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 (...
1
vote
1
answer
253
views
find and rename base directory and files under each basedir, add a prefix
I would like to recursively rename all matching directories and files under a path with a prefix that depend from the current directory.
.
├── G1_BIN_REFINEMENT
│ └── marker_genes
│ └── ...
1
vote
2
answers
384
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
650
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 ...
0
votes
2
answers
487
views
Code that batch renames all .png files with increasing numbers, but how to i add so that the same happens with .jpg files too?
Workflow:
use cd FilePath\Folder first
write ls to get the files read
code that works with .png files only:
Get-ChildItem *.png |
ForEach-Object -Begin { $count = 1 } -Process {
Rename-Item $_ ...
0
votes
3
answers
888
views
Renaming files with batch file by "substring" part of the file name
I have loads of files that I want to rename using a batch file, they are music files in this case and start with artist name, album then song number an finally the song name.
I want, if possible ...