Questions tagged [renaming]
347 questions
305
votes
11 answers
Find and replace Android studio
Is there a way to find and replace all occurrences of a word in an entire project( not just a single class using refactor -> rename) and also maintain case, either in android studio or using a command line script?
For example, Supplier has to go to…
![](../../users/profiles/2342568.webp)
sirFunkenstine
- 7,007
- 6
- 34
- 51
83
votes
7 answers
Rename or refactor files in Xcode
Is it possible to rename/refactor a class file and have it rename the actual file on disk? If so, how can I do this?
![](../../users/profiles/19875.webp)
Sheehan Alam
- 57,155
- 123
- 348
- 546
29
votes
7 answers
How to remove spaces from file names (in bulk)
How to remove spaces (not replace with underscores) from several thousand files in bulk in Windows? Can I do this from the DOS command?
Currently:
file one.mp3
file two.mp3
All files need to become:
fileone.mp3
filetwo.mp3
![](../../users/profiles/275390.webp)
Nick Kahn
- 18,273
- 84
- 260
- 388
23
votes
2 answers
Renaming a column in MS SQL Server 2005
What is the best practice when it comes to renaming a table column using SQL (MS SQL Server 2005 variant)? This assumes that there is data in the column that must be preserved.
![](../../users/profiles/15985.webp)
Thomas Bratt
- 40,822
- 34
- 113
- 133
16
votes
7 answers
How to rename Java packages without breaking Subversion history?
The company I'm working for is starting up and they changed their name in the process. So we still use the package name com.oldname because we are afraid of breaking the file change history, or the ancestry links between versions, or whatever we…
![](../../users/profiles/249518.webp)
Joanis
- 1,659
- 3
- 18
- 32
14
votes
13 answers
How should I rename many Stored Procedures without breaking stuff?
My database has had several successive maintainers over the years and any naming guidelines that may have once been in place have been ignored.
I'd like to rename the stored procedures to a consistent format. Obviously I can rename them from within…
![](../../users/profiles/93702.webp)
fearoffours
- 1,385
- 2
- 11
- 23
13
votes
2 answers
WindowsError: [Error 2] The system cannot find the file specified
I am having a problem with this code. I am trying to rename all of the filenames within a folder so that they no longer have +'s in them! This has worked many times before but suddenly I get the error:
WindowsError: [Error 2] The system cannot find…
![](../../users/profiles/527824.webp)
Alice Duff
- 667
- 4
- 11
- 17
13
votes
1 answer
Error While Renaming An Extracted Zip File To Other Languages In PHP
I use PHP ZipArchive class to extract a .zip file, It works fine for English, but cause problems in my local language (THAI).
I use icov('utf-8','windows-874',$zip->getNameIndex($i)) to convert utf-8 to THAI. It works for folder's/file's name, but…
![](../../users/profiles/5082518.webp)
Veerapat Boonvanich
- 231
- 2
- 12
13
votes
1 answer
How to rename existing solution and project in Visual Studio 2008?
Possible Duplicate:
how to rename a project without killing solution
I know that this question has been frequently asked, but none could help me overcome the fear of rendering my application useless by improper renaming of my solution,
I am…
![](../../users/profiles/1479153.webp)
Samy S.Rathore
- 1,665
- 3
- 25
- 43
12
votes
6 answers
Renaming files: Visual Studio vs Version control
The problem with renaming files is that if you want to take advantage of Visual Studio refactoring, you really need to do it from inside Visual Studio.
But most (not all*) version control system also want to be the ones doing the renaming.
One…
![](../../users/profiles/11410.webp)
Benjol
- 57,639
- 51
- 180
- 252
12
votes
6 answers
AWK, SED, REGEX to rename files
I'm only learning to use REGEX, AWK and SED. I currently have a group of files that I'd like to rename - they all sit in one directory.
The naming pattern is consistent, but I would like to re-arrange the filenames, here is the…
![](../../users/profiles/3043123.webp)
user3043123
- 173
- 1
- 2
- 6
12
votes
4 answers
Using variable value as column name in data.frame or cbind
Is there a way in R to have a variable evaluated as a column name when creating a data frame (or in similar situations like using cbind)?
For example
a <- "mycol";
d <- data.frame(a=1:10)
this creates a data frame with one column named a rather…
![](../../users/profiles/614684.webp)
JasonMond
- 1,390
- 1
- 12
- 30
10
votes
1 answer
How to Batch change file extensions within subfolders
I am very new to Command Prompt, and only started using it as of 1 day ago.
I have a folder in a location, for example C:\Users\Administrator\Desktop\Images, and inside that folder there is roughly 650 sub-folders, each containing around 20 images,…
![](../../users/profiles/2152772.webp)
Jai Burrell
- 101
- 1
- 3
- 6
10
votes
4 answers
TortoiseSVN cannot commit, says "forbidden by server"
Recently a bunch of renaming changes were made into a folder that I checked out a while ago. Once I updated all of the renaming changes, I am having a problem of not being able to commit anything. It says the following:
I am able to read, write,…
![](../../users/profiles/556282.webp)
O_O
- 4,017
- 15
- 46
- 66
9
votes
1 answer
Renaming models(tables) in Django
so I've already created models in Django for my db, but now want to rename the model. I've change the names in the Meta class and then make migrations/migrate but that just creates brand new tables.
I've also tried schemamigration but also not…
![](../../users/profiles/4300931.webp)
Toby Green
- 91
- 1
- 1
- 2