Skip to main content

Questions tagged [file-rename]

rename-file means changing name of a file

file-rename
0 votes
0 answers
25 views

Python code is supposed to resize and rename photos a base name + 'a' 'b'...'z' -'aa' 'bb'...'zz' it instead does is 'aa' 'ab' 'ac'...ect

import os import tkinter as tk from tkinter import filedialog, messagebox, ttk, simpledialog from PIL import Image import threading # Function to resize and rename images def resize_and_rename(...
Logan's user avatar
  • 1
0 votes
1 answer
53 views

Rename multiple files with a variable number via loop in batch

I have a couple of files, let's say numbered 40, with extensions .htm, .html, .mhtml etc- (not the same - it's important). Here's a brief example: alpha.htm beta.htm gamma.html delta.htm I would like ...
barsicle's user avatar
0 votes
2 answers
56 views

Unzip in VBA and rename output file to zip-file name

I've already searched for a solution, but I just couldn't find any. I just want to unzip a file and rename the output to the zip files name then (e.g. myfile.zip ---> myfile.xls). My zipfiles ...
cody's user avatar
  • 6,749
0 votes
1 answer
94 views

Modern way to change the name of a file the documents directory in Swift

What is the modern Swift way to change a filename in the documents directory when you need to replace an existing file of the target name if one exists? (For this reason, I am not using moveItem... ...
user6631314's user avatar
  • 1,868
0 votes
1 answer
37 views

Batch rename files in a certain directory (remove prefixes)

I have a folder on Windows with pictures from various messengers, each with their own format. Some prefix IMG_, some image-, and my own pictures don't use any prefix. I want to write a script that ...
LinguistLamar's user avatar
0 votes
0 answers
22 views

PowerRename RegEx to match filename BEFORE specified text [duplicate]

I am attempting to use Powertoys PowerRename to truncate the end of filename(s) after specified text, and then replace with additional text (perhaps this is beyond the functionality of this tool?). e....
Fabian Butkovich's user avatar
0 votes
1 answer
41 views

File renaming - match patterns and rename only matches. After delete all mismatches

I am trying to rename several files (thousands) with the following algorithm in Python: There is a list of word-patterns. Each entry starts on a new line and contains text data of one or more words. ...
Nicetas's user avatar
0 votes
1 answer
172 views

Batch file to rename added files to continue sequence of files already in folder

I'm trying to make a batch script that will rename both image files (.jpg .jpeg .png) and video files (.avi .flv .mp4 .mpg .mpeg .qt .webm .wmv) files to a numeric sequence or continue a pre-existing ...
user23510471's user avatar
0 votes
1 answer
83 views

EXIFTOOL: How do i use tag info (-filename) and use that to export a text file

I have a series of sony mp4 files that i would like to extract embeddedded info like shutter speed ISO etc. I was able to figure out formatting the info I needed. However, I can't seem to get how to ...
Dellzy's user avatar
  • 1
2 votes
2 answers
53 views

How to Change case of part of Filename with Powershell and Regex?

Have a bunch of Video files, that all contain either 1080P / 720P in the end of Base Filename but before the Extension usually, but we can assume all the filenames have either one of two anywhere in ...
Vicky Dev's user avatar
  • 2,107
-1 votes
1 answer
69 views

how to rename multiple files from different subfolders in R, while keeping them in their original folder

''' fieldszn <- '~/Desktop/hls project/fieldszn' bands <- list.files(fieldszn, pattern = "*.tiff", recursive = TRUE, full.names = FALSE) new_names <- c("red", "...
codenoob's user avatar
-1 votes
4 answers
95 views

rename files: delete name up to first underscore [duplicate]

I have several thousand files that need to be renamed. They are in the form of xxxxx_file name.doc The xxxx is alpha-numeric but in all cases the prefix upto and including the first underscore needs ...
jwzumwalt's user avatar
  • 201
0 votes
0 answers
18 views

how do I unlock a file that should not be locked?

I am writing a program to manipulate image file names. I load the image using IO.FileStream and close the filestream after loading the image into the image box, but if I try to now rename the ...
Martin Allwright's user avatar
0 votes
0 answers
12 views

I was trying to rename a CSV file in the same folder as "(today's date).csv" but I am getting path specified errors [duplicate]

I was trying to rename a CSV file in the same folder as "(today's date).csv" but I am getting path specified errors. The code I used: from datetime import date today = date.today() d1 = ...
Jean Trevor's user avatar
0 votes
1 answer
47 views

I want it to be created with a different name after copying the file to the folder I need

I take files from a spreadsheet in Excel and replace the substituted words in word, copying the file to a separate folder with the finished documents. I work in Excel. I want it to be renamed to the ...
qqq's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
102