file-rename Questions

5

Solved

Is there any way to rename a file while keeping the original creation / modification/ read time? This is in Solaris. Thanks in advance.
Gamester asked 21/6, 2011 at 8:24

7

I know how I can rename files and such, but I'm having trouble with this. I only need to rename test-this in a for loop. test-this.ext test-this.volume001+02.ext test-this.volume002+04.ext test-...
Odin asked 18/12, 2013 at 11:51

3

I'm trying to move a file using SetFileInformationByHandle. This technique has been proposed by Niall Douglas in his CppCon2015 talk "Racing The File System" as a way to atomically move/rename a fi...
Billie asked 6/4, 2016 at 11:46

3

I need help renaming .jpg files in my folder to add the same prefix, 'cat_'. For example, "070.jpg" should be renamed to "cat_070.jpg". The files are located within the Cat fold...
Friedman asked 6/6, 2022 at 17:38

9

Solved

I have a folder with a series of files named: prefix_1234_567.png prefix_abcd_efg.png I'd like to batch remove one underscore and the middle content so the output would be: prefix_567.png prefi...
Shrewd asked 8/6, 2014 at 4:24

3

Solved

I have a file called Default2.aspx that I'm trying rename to Default.aspx, but when I try to do it, the visual studio just rename back to Default2.aspx name. Don't give even any error message. I do...
Ced asked 5/7, 2013 at 18:49

10

Solved

In my application, I need to record video. Before start of recording in I'm assigning a name and directory to it. After recording is finished user has ability to rename his file. I wrote following ...
Abamp asked 3/5, 2012 at 4:11

3

Solved

Here, this renameFile(..) func is working in Android API 30. But, it is not working in Android API 29 and shows the error like : java.lang.IllegalArgumentException: Movement of content://media/exte...
Daviddavida asked 23/8, 2020 at 4:32

12

Solved

I am trying to rename a file to have different capitalization from what it had before: git mv src/collision/b2AABB.js src/collision/B2AABB.js fatal: destination exists, source=src/collision/b2AABB....
Suppurate asked 9/5, 2012 at 20:46

8

Solved

Many sites (including various SO articles) talk about using "rename" using Perl expressions to rename files. This would be perfect, but apparently this is not the rename utility I have, and ...
Harrar asked 22/3, 2014 at 12:44

8

I am trying to implement program to zip and unzip a file. All I want to do is to zip a file (fileName.fileExtension) with name as fileName.zip and on unzipping change it again to fileName.fileExten...
Homemaking asked 31/8, 2012 at 6:13

2

Solved

I'm using wget in a cron job to fetch a .jpg file into a web server folder once per minute (with same filename each time, overwriting). This folder is "live" in that the web server also serves that...
Woehick asked 24/10, 2013 at 18:30

7

Solved

I have a folder with over 100,000 files, all numbered with the same stub, but without leading zeros, and the numbers aren't always contiguous (usually they are, but there are gaps) e.g: file-21.pn...
Nasalize asked 20/6, 2010 at 0:48

17

Solved

I want to change a.txt to b.kml.
Flaunty asked 22/3, 2010 at 9:59

4

Solved

I have over 700 files in one folder named as: files from number 1 to number9 are named for the first month: water_200101_01.img water_200101_09.img files from number 10 to number30 are named: ...
Nickolas asked 25/5, 2012 at 17:35

15

Can we rename a file say test.txt to test1.txt ? If test1.txt exists will it rename ? How do I rename it to the already existing test1.txt file so the new contents of test.txt are added to it fo...
Sikkim asked 21/7, 2009 at 12:5

3

Solved

I have a file that I've renamed and then edited. I would like to tell Git to stage the rename, but not the content modifications. That is, I wish to stage the deletion of the old file name, and the...
Calumniate asked 17/4, 2015 at 17:44

5

Solved

I have a Python script that compares existing file names in a folder to a reference table and then determines if it needs to be renamed or not. As it loops through each filename: 'oldname' = ...
Flank asked 1/3, 2017 at 20:47

6

Solved

I'd like for my users to be able to re-name a file before uploading it. I have a File object in Javascript which has a name property that is already set, but i'd like for this to be able to be upd...
Historicism asked 9/6, 2015 at 13:46

4

To download the SOFA Statistics from the server I use the wget command: wget -c http://sourceforge.net/projects/sofastatistics/files/latest/download?source=dlp The filename of downloaded file in...
Inward asked 13/1, 2013 at 17:54

28

Solved

In a directory, I have a bunch of *.html files. I'd like to rename them all to *.txt How can I do that? I use the Bash shell.
Zosi asked 3/8, 2009 at 21:42

5

Solved

Say I have the following files: a_b.txt a_b_c.txt a_b_c_d_e.txt a_b_c_d_e_f_g_h_i.txt I want to rename them in such a way that I split their filenames by _ and I retain the first and last field, s...
Bismuthinite asked 30/8, 2021 at 10:57

4

Solved

Hi there i've been trying to adapt this to my needs but I'm just a newbe in python, I have a csv file with multiple columns and rows, important columns are 1 = old name of file, and 2 = new name of...
Crockery asked 17/11, 2013 at 16:55

3

Solved

I would like to change a txt file's name, but I can not find how to do this. For example, I want to rename foo.txt to boo.txt in my C++ program.
Adel asked 23/5, 2011 at 21:5

8

I have 500 pdf files in a directory. I want to remove first five characters of a filename and rename it.
Matsuyama asked 27/4, 2010 at 11:5

© 2022 - 2025 — McMap. All rights reserved.